capstone-engine / capstone

Capstone disassembly/disassembler framework for ARM, ARM64 (ARMv8), Alpha, BPF, Ethereum VM, HPPA, M68K, M680X, Mips, MOS65XX, PPC, RISC-V(rv32G/rv64G), SH, Sparc, SystemZ, TMS320C64X, TriCore, Webassembly, XCore and X86.

Home Page:http://www.capstone-engine.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[PPC] Implement VLE support

Rot127 opened this issue · comments

There has been the request already to add PowerPC VLE support to Capstone (#560).

With the auto-sync update this becomes now easier to add.

The steps to add this is:

  • Extend the PPC definitions in LLVM with a td file for VLE.
    • A simple example how to do this is the PS extension which is also not upstreamed in LLVM but only added by us.
    • Someone already attempted to add it. Maybe he has already some work done we could use?
  • If any new operand types are necessary, implement the decoder and printer functions in PPCDisassembler.cpp and PPCAsmPrinter.cpp
  • Run auto-sync updater to get it into Capstone.

Good start is the auto-sync docs and linked docs in there. It gives more details about the process and how everything works.