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:
parent
d1cbc41115
commit
f68f55d002
|
@ -713,15 +713,11 @@ bool NDS::DoSavestate(Savestate* file)
|
||||||
|
|
||||||
SPU.SetPowerCnt(PowerControl7 & 0x0001);
|
SPU.SetPowerCnt(PowerControl7 & 0x0001);
|
||||||
Wifi.SetPowerCnt(PowerControl7 & 0x0002);
|
Wifi.SetPowerCnt(PowerControl7 & 0x0002);
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef JIT_ENABLED
|
#ifdef JIT_ENABLED
|
||||||
if (!file->Saving)
|
JIT.Reset();
|
||||||
{
|
|
||||||
JIT.ResetBlockCache();
|
|
||||||
JIT.Memory.Reset();
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
file->Finish();
|
file->Finish();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue