Permalink
Browse files

Apply a fix to the ARM64 emitter ported over from Dolphin

  • Loading branch information...
hrydgard committed Dec 9, 2017
1 parent 299cb00 commit e07861991b60a342b0f49320f9ebd18eb699c22f
Showing with 1 addition and 1 deletion.
  1. +1 −1 Common/Arm64Emitter.cpp
@@ -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

0 comments on commit e078619

Please sign in to comment.