aboutsummaryrefslogtreecommitdiff
path: root/opcodes/disassemble.h
diff options
context:
space:
mode:
authorNelson Chu <nelson.chu@sifive.com>2020-12-08 14:39:01 +0800
committerNelson Chu <nelson.chu@sifive.com>2020-12-10 10:43:18 +0800
commit8152e0407c25612c6a8079cc8e1a5c1fe14afdbf (patch)
treedaa8aa52a6cb7ed7f284c8ea31019af9d502badf /opcodes/disassemble.h
parent729a53530e86972d1143553a415db34e6e01d5d2 (diff)
downloadbinutils-8152e0407c25612c6a8079cc8e1a5c1fe14afdbf.zip
binutils-8152e0407c25612c6a8079cc8e1a5c1fe14afdbf.tar.gz
binutils-8152e0407c25612c6a8079cc8e1a5c1fe14afdbf.tar.bz2
RISC-V: Dump CSR according to the elf privileged spec attributes.
opcodes/ * disassemble.h (riscv_get_disassembler): Declare. * disassemble.c (disassembler): Changed to riscv_get_disassembler. * riscv-dis.c (riscv_get_disassembler): Check the elf privileged spec attributes before calling print_insn_riscv. (parse_riscv_dis_option): Same as the assembler, the priority of elf attributes are higher than the options. If we find the privileged attributes, but the -Mpriv-spec= is different, then output error/warning and still use the elf attributes set.
Diffstat (limited to 'opcodes/disassemble.h')
-rw-r--r--opcodes/disassemble.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/opcodes/disassemble.h b/opcodes/disassemble.h
index 89db886..a47071f 100644
--- a/opcodes/disassemble.h
+++ b/opcodes/disassemble.h
@@ -103,6 +103,7 @@ extern int print_insn_z8002 (bfd_vma, disassemble_info *);
extern disassembler_ftype csky_get_disassembler (bfd *);
extern disassembler_ftype rl78_get_disassembler (bfd *);
+extern disassembler_ftype riscv_get_disassembler (bfd *);
extern void ATTRIBUTE_NORETURN opcodes_assert (const char *, int);