From fbdc20ac373ca633b8cbc413386c30f92a8f6847 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sun, 16 Aug 2015 18:28:58 +0200 Subject: [PATCH] Jit64: load PC only once after fallbacks --- Source/Core/Core/PowerPC/Jit64/Jit.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Core/Core/PowerPC/Jit64/Jit.cpp b/Source/Core/Core/PowerPC/Jit64/Jit.cpp index e20c3c8685..a901b23653 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit.cpp @@ -255,9 +255,8 @@ void Jit64::FallBackToInterpreter(UGeckoInstruction inst) else { MOV(32, R(RSCRATCH), PPCSTATE(npc)); - SUB(32, R(RSCRATCH), Imm32(js.compilerPC + 4)); + CMP(32, R(RSCRATCH), Imm32(js.compilerPC + 4)); FixupBranch c = J_CC(CC_Z); - MOV(32, R(RSCRATCH), PPCSTATE(npc)); MOV(32, PPCSTATE(pc), R(RSCRATCH)); WriteExceptionExit(); SetJumpTarget(c);