mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 02:03:47 +01:00
Apply a fix to the ARM64 emitter ported over from Dolphin
This commit is contained in:
1 parent
299cb007c2
commit
e07861991b
1 file changed
+1
-1
@@ -1979,7 +1979,7 @@ void ARM64XEmitter::MOVI2R(ARM64Reg Rd, u64 imm, bool optimize)
|
||||
|
||||
u64 aligned_pc = (u64)GetCodePointer() & ~0xFFF;
|
||||
s64 aligned_offset = (s64)imm - (s64)aligned_pc;
|
||||
if (Count(upload_part) > 1 && abs64(aligned_offset) < 0xFFFFFFFFLL)
|
||||
if (Count(upload_part) > 1 && abs64(aligned_offset) < 0x7FFFFFFFLL)
|
||||
{
|
||||
// Immediate we are loading is within 4GB of our aligned range
|
||||
// Most likely a address that we can load in one or two instructions
|
||||
|
||||
Reference in new issue
Block a user