JitArm64: Fix lmw + stmw
This commit is contained in:
parent
955bef226e
commit
3ae466a33c
|
@ -579,13 +579,13 @@ void JitArm64::lmw(UGeckoInstruction inst)
|
||||||
u16 remaining = off >> 12;
|
u16 remaining = off >> 12;
|
||||||
if (add)
|
if (add)
|
||||||
{
|
{
|
||||||
ADD(WA, WA, remaining, true);
|
|
||||||
ADD(WA, gpr.R(a), off & 0xFFF);
|
ADD(WA, gpr.R(a), off & 0xFFF);
|
||||||
|
ADD(WA, WA, remaining, true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SUB(WA, WA, remaining, true);
|
|
||||||
SUB(WA, gpr.R(a), off & 0xFFF);
|
SUB(WA, gpr.R(a), off & 0xFFF);
|
||||||
|
SUB(WA, WA, remaining, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -667,13 +667,13 @@ void JitArm64::stmw(UGeckoInstruction inst)
|
||||||
u16 remaining = off >> 12;
|
u16 remaining = off >> 12;
|
||||||
if (add)
|
if (add)
|
||||||
{
|
{
|
||||||
ADD(WA, WA, remaining, true);
|
|
||||||
ADD(WA, gpr.R(a), off & 0xFFF);
|
ADD(WA, gpr.R(a), off & 0xFFF);
|
||||||
|
ADD(WA, WA, remaining, true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SUB(WA, WA, remaining, true);
|
|
||||||
SUB(WA, gpr.R(a), off & 0xFFF);
|
SUB(WA, gpr.R(a), off & 0xFFF);
|
||||||
|
SUB(WA, WA, remaining, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue