mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 11:13:44 +01:00
Fix/workaround ARM64 with the MASKED_PSP_MEMORY build flag.
This commit is contained in:
1 parent
dd7983c8dd
commit
1b596ef82b
4 files changed
+8
-1
No files matched your search
@@ -311,6 +311,7 @@ namespace MIPSComp {
|
||||
case 40: //sb
|
||||
case 41: //sh
|
||||
case 43: //sw
|
||||
#ifndef MASKED_PSP_MEMORY
|
||||
if (jo.cachePointers && g_Config.bFastMemory) {
|
||||
// ARM has smaller load/store immediate displacements than MIPS, 12 bits - and some memory ops only have 8 bits.
|
||||
int offsetRange = 0x3ff;
|
||||
@@ -327,6 +328,7 @@ namespace MIPSComp {
|
||||
gpr.MapReg(rt, load ? MAP_NOINIT : 0);
|
||||
targetReg = gpr.R(rt);
|
||||
}
|
||||
|
||||
switch (o) {
|
||||
case 35: LDR(INDEX_UNSIGNED, targetReg, gpr.RPtr(rs), offset); break;
|
||||
case 37: LDRH(INDEX_UNSIGNED, targetReg, gpr.RPtr(rs), offset); break;
|
||||
@@ -342,6 +344,7 @@ namespace MIPSComp {
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!load && gpr.IsImm(rt) && gpr.TryMapTempImm(rt) != INVALID_REG) {
|
||||
// We're storing an immediate value, let's see if we can optimize rt.
|
||||
|
||||
Reference in new issue
Block a user