mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-05 12:13:50 +01:00
arm64jit: Enable safe memory for lwl/lwr.
This commit is contained in:
1 parent
c00044c5d8
commit
0fc8274ec4
1 file changed
+6
-6
@@ -176,18 +176,18 @@ namespace MIPSComp {
|
||||
} else {
|
||||
gpr.MapInIn(rt, rs);
|
||||
}
|
||||
gpr.SpillLock(rt);
|
||||
gpr.SpillLock(rs);
|
||||
// Need to get temps before skipping safe mem.
|
||||
ARM64Reg LR_SCRATCH3 = gpr.GetAndLockTempR();
|
||||
ARM64Reg LR_SCRATCH4 = gpr.GetAndLockTempR();
|
||||
|
||||
if (false && !g_Config.bFastMemory && rs != MIPS_REG_SP) {
|
||||
if (!g_Config.bFastMemory && rs != MIPS_REG_SP) {
|
||||
skips = SetScratch1ForSafeAddress(rs, offset, SCRATCH2);
|
||||
} else {
|
||||
SetScratch1ToEffectiveAddress(rs, offset);
|
||||
}
|
||||
|
||||
// We can lose rs now, since we have it in SCRATCH1.
|
||||
gpr.SpillLock(rt);
|
||||
ARM64Reg LR_SCRATCH3 = gpr.GetAndLockTempR();
|
||||
ARM64Reg LR_SCRATCH4 = gpr.GetAndLockTempR();
|
||||
|
||||
// Here's our shift amount.
|
||||
ANDI2R(SCRATCH2, SCRATCH1, 3);
|
||||
LSL(SCRATCH2, SCRATCH2, 3);
|
||||
|
||||
Reference in new issue
Block a user