From 6c1f39458b04256732dc7572f6f2d59f2f28ec5e Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Tue, 14 Aug 2018 02:27:48 +0200 Subject: [PATCH] Jit64: Update PC before checking for exceptions --- Source/Core/Core/PowerPC/Jit64/Jit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/Core/PowerPC/Jit64/Jit.cpp b/Source/Core/Core/PowerPC/Jit64/Jit.cpp index 507a2528bd..970db75673 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit.cpp @@ -916,6 +916,7 @@ const u8* Jit64::DoJit(u32 em_address, JitBlock* b, u32 nextPC) fprToFlush[js.revertFprLoad] = false; gpr.Flush(RegCache::FlushMode::MaintainState, gprToFlush); fpr.Flush(RegCache::FlushMode::MaintainState, fprToFlush); + MOV(32, PPCSTATE(pc), Imm32(op.address)); WriteExceptionExit(); SwitchToNearCode(); }