Permalink
Browse files

arm64jit: Only adjust pointers if pointerified.

  • Loading branch information...
unknownbrackets committed Dec 28, 2017
1 parent cccf448 commit 3fae092ecb3e67144e33c0e1c5cdd4b59f5774bc
Showing with 1 addition and 1 deletion.
  1. +1 −1 Core/MIPS/ARM64/Arm64CompALU.cpp
@@ -86,7 +86,7 @@ void Arm64Jit::Comp_IType(MIPSOpcode op) {
case 8: // same as addiu?
case 9: // R(rt) = R(rs) + simm; break; //addiu
// Special-case for small adjustments of pointerified registers. Commonly for SP but happens for others.
if (rs == rt && gpr.IsMappedAsPointer(rs) && IsImmArithmetic(simm < 0 ? -simm : simm, nullptr, nullptr)) {
if (rs == rt && jo.enablePointerify && gpr.IsMappedAsPointer(rs) && IsImmArithmetic(simm < 0 ? -simm : simm, nullptr, nullptr)) {
ARM64Reg r32 = gpr.R(rs);
gpr.MarkDirty(r32);
ARM64Reg r = EncodeRegTo64(r32);

0 comments on commit 3fae092

Please sign in to comment.