md, minor cleanup for region code handling

This commit is contained in:
kub 2024-06-15 09:28:04 +00:00
parent 6a996613a9
commit 7cbd42bc54
2 changed files with 7 additions and 5 deletions

View file

@ -1341,10 +1341,6 @@ static void PicoCartDetect(const char *carthw_cfg)
memset(Pico.sv.data, 0xff, Pico.sv.size);
}
// Unusual region 'code'
if (rom_strcmp(0x1f0, "EUROPE") == 0 || rom_strcmp(0x1f0, "Europe") == 0)
*(u32 *) (Pico.rom + 0x1f0) = CPU_LE4(0x20204520);
// tweak for Blackthorne: master SH2 overwrites stack of slave SH2 being in PWM
// interrupt. On real hardware, nothing happens since slave fetches the values
// it has written from its cache, but picodrive doesn't emulate caching.