Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[ARM] Missed flushing our register caches in mtmsr. This would cause …
…a buttload of problems, including the suspected ori being wrong issue. So flush caches and reenable ori.
  • Loading branch information
Sonicadvance1 committed Aug 5, 2013
1 parent bafed34 commit db93b51
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Source/Core/Core/Src/PowerPC/JitArm32/JitArm_Integer.cpp
Expand Up @@ -123,12 +123,11 @@ 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 Expand Up @@ -283,7 +282,7 @@ void JitArm::cmpli(UGeckoInstruction inst)
gpr.Unlock(rA);

}
// Wrong - 27/10/2012

void JitArm::negx(UGeckoInstruction inst)
{
INSTRUCTION_START
Expand Down
Expand Up @@ -105,6 +105,10 @@ void JitArm::mtmsr(UGeckoInstruction inst)
//JITDISABLE(SystemRegisters)

STR(gpr.R(inst.RS), R9, PPCSTATE_OFF(msr));

gpr.Flush();
fpr.Flush();

WriteExit(js.compilerPC + 4, 0);
}
void JitArm::mfmsr(UGeckoInstruction inst)
Expand Down

0 comments on commit db93b51

Please sign in to comment.