thixotropist / ghidra_import_tests

Experimental framework for testing Ghidra binary import support
1 stars 0 forks source link

Add tests for newer instructions #5

Closed thixotropist closed 1 year ago

thixotropist commented 1 year ago

Add test cases to generate all RISCV-64 instructions not currently handled by Ghidra but accepted by binutils 2-41. Some of these are privileged instructions used in hypervisor contexts, so their only real value is in improving the completeness of kernel disassembly. Others may include vector or crypto instructions. Prioritize instructions that might be used in a network context rather than an AI or scientific context.

thixotropist commented 1 year ago

We can likely track which new instructions are a priority with the industry with git log binutils/include/opcode/riscv-opc.h, looking for lines like

Date:   Fri Jun 30 22:44:05 2023 +0200
RISC-V: Add support for the Zvksh ISA extension
Zvksh is part of the vector crypto extensions
thixotropist commented 1 year ago

Cose this general issue with the first batch of extension instruction signatures submitted to Ghidra. More narrowly scoped issues should follow.