rizin icon indicating copy to clipboard operation
rizin copied to clipboard

PPC: RZIL suppport for VLE

Open Rot127 opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe.

While Rizin supports the VLE extension via the internal libvle the instructions are not uplifted to RZIL yet.

One challenge for this is that the RZIL code makes a lot of use of Capstone's cs_insn.detail.ppc struct (which holds the operand information).

Describe the solution you'd like

Since many 32bit VLE instructions match the normal instructions by operands and execution semantics, an adapter function between vle_t <-> cs_insn could be added. This would allow to use the current code to be used by libvle as well.

For the 16bit instructions, which differ more significantly, additional code should be written.

Describe alternatives you've considered None

Additional context

libvle: https://github.com/rizinorg/rizin/tree/dev/librz/asm/arch/ppc/libvle

Rot127 avatar Aug 10 '22 17:08 Rot127

Is it possible to upstream VLE support to Capstone instead?

notxvilka avatar May 21 '25 18:05 notxvilka