Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[ARM] Minor idle skip optimization in bx.
  • Loading branch information
Sonicadvance1 committed Nov 5, 2013
1 parent 56685c3 commit 948ace9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Source/Core/Core/Src/PowerPC/JitArm32/JitArm_Branch.cpp
Expand Up @@ -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);
}
Expand Down

0 comments on commit 948ace9

Please sign in to comment.