mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
arm64jit: Enable safe memory for lwl/lwr.
This commit is contained in:
parent
c00044c5d8
commit
0fc8274ec4
1 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue