Jit64: Update PC before checking for exceptions
This commit is contained in:
parent
60f12e1d4c
commit
6c1f39458b
|
@ -916,6 +916,7 @@ const u8* Jit64::DoJit(u32 em_address, JitBlock* b, u32 nextPC)
|
||||||
fprToFlush[js.revertFprLoad] = false;
|
fprToFlush[js.revertFprLoad] = false;
|
||||||
gpr.Flush(RegCache::FlushMode::MaintainState, gprToFlush);
|
gpr.Flush(RegCache::FlushMode::MaintainState, gprToFlush);
|
||||||
fpr.Flush(RegCache::FlushMode::MaintainState, fprToFlush);
|
fpr.Flush(RegCache::FlushMode::MaintainState, fprToFlush);
|
||||||
|
MOV(32, PPCSTATE(pc), Imm32(op.address));
|
||||||
WriteExceptionExit();
|
WriteExceptionExit();
|
||||||
SwitchToNearCode();
|
SwitchToNearCode();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue