Jit64: load PC only once after fallbacks

This commit is contained in:
Tillmann Karras 2015-08-16 18:28:58 +02:00
parent 1b2074e53f
commit fbdc20ac37
1 changed files with 1 additions and 2 deletions

View File

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