Skip to content

Commit

Permalink
Apply a fix to the ARM64 emitter ported over from Dolphin
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Dec 10, 2017
1 parent 299cb00 commit e078619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Common/Arm64Emitter.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1979,7 +1979,7 @@ void ARM64XEmitter::MOVI2R(ARM64Reg Rd, u64 imm, bool optimize)


u64 aligned_pc = (u64)GetCodePointer() & ~0xFFF; u64 aligned_pc = (u64)GetCodePointer() & ~0xFFF;
s64 aligned_offset = (s64)imm - (s64)aligned_pc; 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 // Immediate we are loading is within 4GB of our aligned range
// Most likely a address that we can load in one or two instructions // Most likely a address that we can load in one or two instructions
Expand Down

0 comments on commit e078619

Please sign in to comment.