From f68f55d002c412ead4e0ce88dd48b11d6f7900e3 Mon Sep 17 00:00:00 2001 From: Eric Warmenhoven Date: Wed, 3 Jan 2024 08:42:08 -0500 Subject: Reset the JIT when loading savestate (#1937) The effect of this change is simply to call JitEnableWrite(), which is necessary on apple silicon --- src/NDS.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/NDS.cpp b/src/NDS.cpp index 1d7e34a..f67cb84 100644 --- a/src/NDS.cpp +++ b/src/NDS.cpp @@ -713,15 +713,11 @@ bool NDS::DoSavestate(Savestate* file) SPU.SetPowerCnt(PowerControl7 & 0x0001); Wifi.SetPowerCnt(PowerControl7 & 0x0002); - } #ifdef JIT_ENABLED - if (!file->Saving) - { - JIT.ResetBlockCache(); - JIT.Memory.Reset(); - } + JIT.Reset(); #endif + } file->Finish(); -- cgit v1.2.3