Reset the JIT when loading savestate (#1937)

The effect of this change is simply to call JitEnableWrite(), which is
necessary on apple silicon
This commit is contained in:
Eric Warmenhoven 2024-01-03 08:42:08 -05:00 committed by GitHub
parent d1cbc41115
commit f68f55d002
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();