From: Paul Cercueil Date: Sun, 12 Jun 2022 15:59:14 +0000 (+0100) Subject: psxmem: Use Lightrec memory map even for interpreter X-Git-Tag: r24l~452^2 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=640c8536fb425656656288bf7c1c06310336bdb0;p=pcsx_rearmed.git psxmem: Use Lightrec memory map even for interpreter 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 --- diff --git a/libpcsxcore/psxmem.c b/libpcsxcore/psxmem.c index 1f7aa8cd..9bb3760a 100644 --- a/libpcsxcore/psxmem.c +++ b/libpcsxcore/psxmem.c @@ -175,7 +175,7 @@ int psxMemInit(void) unsigned int i; int ret; - if (LIGHTREC_CUSTOM_MAP && Config.Cpu == CPU_DYNAREC) + if (LIGHTREC_CUSTOM_MAP) ret = lightrec_init_mmap(); else ret = psxMemInitMap(); @@ -255,7 +255,7 @@ void psxMemReset() { } void psxMemShutdown() { - if (LIGHTREC_CUSTOM_MAP && Config.Cpu == CPU_DYNAREC) + if (LIGHTREC_CUSTOM_MAP) lightrec_free_mmap(); else psxMemFreeMap();