From a589361b8254fe18b8af1bbc87814dc397a91c3a Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 9 Mar 2013 14:39:17 -0800 Subject: [PATCH] Call GEtImm() before Map* in case of overlap. --- Core/MIPS/ARM/ArmCompALU.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/MIPS/ARM/ArmCompALU.cpp b/Core/MIPS/ARM/ArmCompALU.cpp index 281b51b6786f..843342c3ba0c 100644 --- a/Core/MIPS/ARM/ArmCompALU.cpp +++ b/Core/MIPS/ARM/ArmCompALU.cpp @@ -347,8 +347,8 @@ namespace MIPSComp int rs = _RS; if (gpr.IsImm(rs)) { - gpr.MapDirtyIn(rd, rt); int sa = gpr.GetImm(rs) & 0x1F; + gpr.MapDirtyIn(rd, rt); MOV(gpr.R(rd), Operand2(gpr.R(rt), shiftType, sa)); return; }