Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[ARM] Disable lmw when fastmem is disabled.
  • Loading branch information
Sonicadvance1 committed Sep 12, 2013
1 parent d9dd0a7 commit fa5499e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Source/Core/Core/Src/PowerPC/JitArm32/JitArm_LoadStore.cpp
Expand Up @@ -134,6 +134,9 @@ void JitArm::SafeStoreFromReg(bool fastmem, s32 dest, u32 value, s32 regOffset,

void JitArm::stX(UGeckoInstruction inst)
{
INSTRUCTION_START
JITDISABLE(bJITLoadStoreOff)

u32 a = inst.RA, b = inst.RB, s = inst.RS;
s32 offset = inst.SIMM_16;
u32 accessSize = 0;
Expand Down Expand Up @@ -455,6 +458,12 @@ void JitArm::lXX(UGeckoInstruction inst)
// We make the assumption that this pulls from main RAM at /all/ times
void JitArm::lmw(UGeckoInstruction inst)
{
INSTRUCTION_START
JITDISABLE(bJITLoadStoreOff)
if (!Core::g_CoreStartupParameter.bFastmem){
Default(inst); return;
}

u32 a = inst.RA;
ARMReg rA = gpr.GetReg();
ARMReg rB = gpr.GetReg();
Expand Down
Expand Up @@ -71,7 +71,6 @@ void JitArm::mfspr(UGeckoInstruction inst)
JITDISABLE(bJITSystemRegistersOff)

u32 iIndex = (inst.SPRU << 5) | (inst.SPRL & 0x1F);
ARMReg RD = gpr.R(inst.RD);
switch (iIndex)
{
case SPR_WPAR:
Expand All @@ -81,6 +80,7 @@ void JitArm::mfspr(UGeckoInstruction inst)
Default(inst);
return;
default:
ARMReg RD = gpr.R(inst.RD);
LDR(RD, R9, PPCSTATE_OFF(spr) + iIndex * 4);
break;
}
Expand Down

0 comments on commit fa5499e

Please sign in to comment.