The CPU emulation method (interpreter or dynarec) can be switched at
runtime. Therefore we must use Lightrec's memory map even when the
interpreter is used.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
unsigned int i;
int ret;
- if (LIGHTREC_CUSTOM_MAP && Config.Cpu == CPU_DYNAREC)
+ if (LIGHTREC_CUSTOM_MAP)
ret = lightrec_init_mmap();
else
ret = psxMemInitMap();
}
void psxMemShutdown() {
- if (LIGHTREC_CUSTOM_MAP && Config.Cpu == CPU_DYNAREC)
+ if (LIGHTREC_CUSTOM_MAP)
lightrec_free_mmap();
else
psxMemFreeMap();