mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-31 09:33:06 +00:00
[ARM] Disable lmw when fastmem is disabled.
This commit is contained in:
parent
d9dd0a7874
commit
fa5499e046
@ -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;
|
||||
@ -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();
|
||||
|
@ -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:
|
||||
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user