From e8cdd50599f33495e23db7649a6dbccd65c08154 Mon Sep 17 00:00:00 2001 From: Galen Williamson Date: Wed, 6 Nov 2024 08:44:58 -0500 Subject: Fixes Vector35/binaryninja-api#5968: "PowerPC flag names no longer recognized (due to changes in capstone register numbering)": handles new capstone flag numbers, allows assembling `isel` instructions with capstone syntax, disassembles flag registers with capstone syntax --- arch/powerpc/il.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/powerpc/il.cpp') 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) -- cgit v1.3.1