mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Apply a fix to the ARM64 emitter ported over from Dolphin
This commit is contained in:
parent
299cb007c2
commit
e07861991b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue