]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Support for disassembling CHERI-RISC-V capmode instructions.
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 12 Oct 2022 20:40:30 +0000 (13:40 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 13 Oct 2022 18:25:32 +0000 (11:25 -0700)
commit2f893d4ecca5196839ed5c2d76b9fa4568d427ff
tree74d1ed11e88ef17a3e699d6587a93f5667bdb5c3
parenteed5ba5c57dbc843ab116205dbad946a9f4855ce
Support for disassembling CHERI-RISC-V capmode instructions.

Add a separate table of capmode instructions and change
riscv_disassemble_insn to look for a match in this table first when
using capmode.  If a match isn't found, fall back to the normal table.

Capmode is currently enabled for any ELF file which has the capmode
flag set in the ELF header flags.
include/opcode/riscv.h
opcodes/riscv-dis.c
opcodes/riscv-opc.c