From 640c8536fb425656656288bf7c1c06310336bdb0 Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Sun, 12 Jun 2022 16:59:14 +0100 Subject: [PATCH 1/1] 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 --- libpcsxcore/psxmem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.39.2