mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 08:20:30 +02:00
armjit: fix lwl/lwr from an imm address.
Can't skip loading the reg value. Likely cause of #5057, possibly other bugs as well.
This commit is contained in:
1 parent
8bc717cf67
commit
ca0a8d0269
1 file changed
+3
-2
@@ -154,8 +154,9 @@ namespace MIPSComp
|
||||
|
||||
if (gpr.IsImm(rs) && Memory::IsValidAddress(iaddr)) {
|
||||
u32 addr = iaddr & 0x3FFFFFFF;
|
||||
// Must be OK even if rs == rt since we have the value from imm already.
|
||||
gpr.MapReg(rt, load ? MAP_NOINIT | MAP_DIRTY : 0);
|
||||
// Need to initialize since this only loads part of the register.
|
||||
// But rs no longer matters (even if rs == rt) since we have the address.
|
||||
gpr.MapReg(rt, load ? MAP_DIRTY : 0);
|
||||
gpr.SetRegImm(R0, addr & ~3);
|
||||
|
||||
u8 shift = (addr & 3) * 8;
|
||||
|
||||
Reference in new issue
Block a user