diff options
author | Eric Warmenhoven <eric@warmenhoven.org> | 2024-01-03 08:42:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-03 14:42:08 +0100 |
commit | f68f55d002c412ead4e0ce88dd48b11d6f7900e3 (patch) | |
tree | af121f020ccc67a3842e6cd41e6f78d69cceb262 | |
parent | d1cbc41115e65e9441ce6cb98d94af2923f42d79 (diff) |
Reset the JIT when loading savestate (#1937)
The effect of this change is simply to call JitEnableWrite(), which is
necessary on apple silicon
-rw-r--r-- | src/NDS.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
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(); |