mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 15:49:50 -06:00
JitArm64: Add additional condition for lmw/stmw a discard
If a is one of the registers that will be loaded/stored, we must not discard it early. Sorry for this fixup of a fixup...
This commit is contained in:
@ -549,7 +549,7 @@ void JitArm64::lmw(UGeckoInstruction inst)
|
|||||||
{
|
{
|
||||||
if (a_is_addr_base_reg)
|
if (a_is_addr_base_reg)
|
||||||
gprs_to_discard[a] = false;
|
gprs_to_discard[a] = false;
|
||||||
else
|
else if (a < d)
|
||||||
gpr.DiscardRegisters(BitSet32{int(a)});
|
gpr.DiscardRegisters(BitSet32{int(a)});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -666,7 +666,7 @@ void JitArm64::stmw(UGeckoInstruction inst)
|
|||||||
{
|
{
|
||||||
if (a_is_addr_base_reg)
|
if (a_is_addr_base_reg)
|
||||||
gprs_to_discard[a] = false;
|
gprs_to_discard[a] = false;
|
||||||
else
|
else if (a < s)
|
||||||
gpr.DiscardRegisters(BitSet32{int(a)});
|
gpr.DiscardRegisters(BitSet32{int(a)});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user