summaryrefslogtreecommitdiff
path: root/arch/powerpc/il.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/il.cpp')
-rw-r--r--arch/powerpc/il.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/il.cpp b/arch/powerpc/il.cpp
index 76cf7419..4d074aa4 100644
--- a/arch/powerpc/il.cpp
+++ b/arch/powerpc/il.cpp
@@ -860,7 +860,7 @@ bool GetLowLevelILForPPCInstruction(Architecture *arch, LowLevelILFunction &il,
REQUIRE4OPS
{
LowLevelILLabel trueLabel, falseLabel, doneLabel;
- uint32_t crBit = oper3->reg - PPC_REG_R0;
+ uint32_t crBit = powerpc_crx_to_reg(oper3->reg);
uint32_t cr = crBit / 4;
switch (crBit % 4)