Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[ARM] Implement the Acid test in the JIT core. This test is currently…
… broken in JIT64 since it uses cr instead of cr_fast.
  • Loading branch information
Sonicadvance1 committed Nov 24, 2013
1 parent e6b3564 commit 6f73162
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Source/Core/Core/Src/PowerPC/JitArm32/JitArm_Branch.cpp
Expand Up @@ -135,9 +135,11 @@ void JitArm::bx(UGeckoInstruction inst)
else
destination = js.compilerPC + SignExt26(inst.LI << 2);
#ifdef ACID_TEST
// TODO: Not implemented yet.
//if (inst.LK)
//AND(32, M(&PowerPC::ppcState.cr), Imm32(~(0xFF000000)));
if (inst.LK)
{
MOV(R14, 0);
STRB(R14, R9, PPCSTATE_OFF(cr_fast[0]));
}
#endif
if (destination == js.compilerPC)
{
Expand Down Expand Up @@ -329,8 +331,11 @@ void JitArm::bclrx(UGeckoInstruction inst)
// This below line can be used to prove that blr "eats flags" in practice.
// This observation will let us do a lot of fun observations.
#ifdef ACID_TEST
// TODO: Not yet implemented
// AND(32, M(&PowerPC::ppcState.cr), Imm32(~(0xFF000000)));
if (inst.LK)
{
MOV(R14, 0);
STRB(R14, R9, PPCSTATE_OFF(cr_fast[0]));
}
#endif

//MOV(32, R(EAX), M(&LR));
Expand Down

0 comments on commit 6f73162

Please sign in to comment.