rizinorg / rizin

UNIX-like reverse engineering framework and command-line toolset.
https://rizin.re
GNU Lesser General Public License v3.0
2.59k stars 346 forks source link

PPC: Broken RZIL instructions #2901

Closed Rot127 closed 7 months ago

Rot127 commented 2 years ago

Work environment

Questions Answers
OS/arch/bits (mandatory) -
File format of the file you reverse (mandatory) -
Architecture/bits of the file (mandatory) PPC
rizin -v full output, not truncated (mandatory) wait for #2823

Broken instructions

A handful of common PPC instructions were not uplifted to RZIL in https://github.com/rizinorg/rizin/pull/2823 because they are broken in Capstone v4 or v5.

Note that most of them are already implemented but were removed because they could not be tested against a QEMU trace. Find the original implementations in this branch: https://github.com/Rot127/rizin/tree/ppc-rzil-broken-insn-impl

This is a list with descriptions:

Capstone v5

Capstone v4 (fixed in v5)

./cstool -v
Cstool for Capstone Disassembler Engine v4.0.2
Capstone build: x86=1 arm=1 arm64=1 mips=1 ppc=1 sparc=1 sysz=1 xcore=1 m68k=1 tms320c64x=1 m680x=1 evm=1 
XVilka commented 1 year ago

Should be addressed by https://github.com/capstone-engine/capstone/pull/2013

XVilka commented 7 months ago

@Rot127 could you please review and address those now that Capstone was fixed.