diff options
| author | Galen Williamson <galen@vector35.com> | 2024-11-06 08:44:58 -0500 |
|---|---|---|
| committer | Galen Williamson <galen@vector35.com> | 2024-11-06 19:24:25 -0500 |
| commit | e8cdd50599f33495e23db7649a6dbccd65c08154 (patch) | |
| tree | 96c4569b5d73a8d7d8b9b97fb12d10bd80c1b15f /arch/powerpc/il.cpp | |
| parent | f1b87ea3ecd5f2293a788e747598a764e898f2fa (diff) | |
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
Diffstat (limited to 'arch/powerpc/il.cpp')
| -rw-r--r-- | arch/powerpc/il.cpp | 2 |
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) |
