From e8206bc27e1633c7e4c99907f43bf67d2f200cd5 Mon Sep 17 00:00:00 2001 From: Galen Williamson Date: Sun, 29 Jun 2025 11:23:58 -0400 Subject: [powerpc] Full merge of PowerPC disassembler PRs, including: * Remove dependency on capstone for PowerPC disassembly #6292 * Add support for PowerPC VLE instruction set #6740 * Add support for paired-single instructions #6821 * Various post-merge fixes and tweaks to disassembly and lifting * Removal of dependence on capstone for assembler's scoring mechanism (capstone currently disabled, but not removed from codebase yet) --- arch/powerpc/util.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'arch/powerpc/util.h') diff --git a/arch/powerpc/util.h b/arch/powerpc/util.h index 0eb14651..39f02bc2 100644 --- a/arch/powerpc/util.h +++ b/arch/powerpc/util.h @@ -30,6 +30,12 @@ #define ADDRNEG1(addressSize) (addressSize == 4) ? ((uint32_t)-1) : ((uint64_t)-1) +inline uint16_t bswap16(uint16_t x) +{ + return ((x&0xFF)<<8) | + ((x&0xFF00)>>8); +} + inline uint32_t bswap32(uint32_t x) { return ((x&0xFF)<<24) | @@ -38,6 +44,4 @@ inline uint32_t bswap32(uint32_t x) ((x&0xFF000000)>>24); } -void printOperandVerbose(decomp_result *res, cs_ppc_op *opers); -void printInstructionVerbose(decomp_result *res); -uint64_t sign_extend(size_t addressSize_local, uint64_t target, int signBit); \ No newline at end of file +uint64_t sign_extend(size_t addressSize_local, uint64_t target, int signBit); -- cgit v1.3.1