Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[ARM] Disable ori since it breaks Wind Waker.
  • Loading branch information
Sonicadvance1 committed Aug 4, 2013
1 parent af71100 commit f690be3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
2 changes: 2 additions & 0 deletions Source/Core/Core/Src/PowerPC/JitArm32/JitArm_Integer.cpp
Expand Up @@ -123,10 +123,12 @@ void JitArm::mulli(UGeckoInstruction inst)
MUL(RD, RA, rA);
gpr.Unlock(rA);
}
// Wrong 04-08-2013. Breaks Wind Waker booting
void JitArm::ori(UGeckoInstruction inst)
{
INSTRUCTION_START
JITDISABLE(Integer)
Default(inst); return;

ARMReg RA = gpr.R(inst.RA);
ARMReg RS = gpr.R(inst.RS);
Expand Down
16 changes: 0 additions & 16 deletions Source/Core/Core/Src/PowerPC/JitArm32/JitArm_LoadStore.cpp
Expand Up @@ -464,21 +464,6 @@ void JitArm::lha(UGeckoInstruction inst)
LDR(rA, R9, PPCSTATE_OFF(Exceptions));
CMP(rA, EXCEPTION_DSI);
FixupBranch DoNotLoad = B_CC(CC_EQ);
#if 0 // FASTMEM
// Backpatch route
// Gets loaded in to RD
// Address is in R10
gpr.Unlock(rA, rB);
if (inst.RA)
{
ARMReg RA = gpr.R(inst.RA);
MOV(R10, RA); // - 4
}
else
MOV(R10, 0); // - 4

LoadToReg(RD, R10, 16, (u32)inst.SIMM_16);
#else

if (inst.RA)
{
Expand All @@ -498,7 +483,6 @@ void JitArm::lha(UGeckoInstruction inst)
POP(4, R0, R1, R2, R3);
MOV(RD, rA);
gpr.Unlock(rA, rB);
#endif
SetJumpTarget(DoNotLoad);
}

Expand Down

0 comments on commit f690be3

Please sign in to comment.