[ARM] Minor idle skip optimization in bx.

This commit is contained in:
Ryan Houdek 2013-11-05 13:05:04 +00:00
parent 56685c396a
commit 948ace9546
1 changed files with 6 additions and 1 deletions

View File

@ -145,7 +145,12 @@ void JitArm::bx(UGeckoInstruction inst)
// CALL(ProtectFunction(&CoreTiming::Idle, 0));
// JMP(Asm::testExceptions, true);
// make idle loops go faster
js.downcountAmount += 8;
MOVI2R(R14, (u32)&CoreTiming::Idle);
BL(R14);
MOVI2R(R14, js.compilerPC);
STR(R14, R9, PPCSTATE_OFF(pc));
MOVI2R(R14, (u32)asm_routines.testExceptions);
B(R14);
}
WriteExit(destination, 0);
}