diff options
| author | Galen Williamson <galen@vector35.com> | 2025-06-29 11:23:58 -0400 |
|---|---|---|
| committer | Galen Williamson <galen@vector35.com> | 2025-06-29 18:28:48 -0400 |
| commit | e8206bc27e1633c7e4c99907f43bf67d2f200cd5 (patch) | |
| tree | 2315bec284e9bb692a0eb8986578fe18e2289d23 /arch/powerpc/util.h | |
| parent | 91f1eccb6c41a7ef60fd66387ffae075f88141a4 (diff) | |
[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)
Diffstat (limited to 'arch/powerpc/util.h')
| -rw-r--r-- | arch/powerpc/util.h | 10 |
1 files changed, 7 insertions, 3 deletions
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); |
