diff options
author | Nelson Chu <nelson.chu@sifive.com> | 2020-12-08 14:39:01 +0800 |
---|---|---|
committer | Nelson Chu <nelson.chu@sifive.com> | 2020-12-10 10:43:18 +0800 |
commit | 8152e0407c25612c6a8079cc8e1a5c1fe14afdbf (patch) | |
tree | daa8aa52a6cb7ed7f284c8ea31019af9d502badf /opcodes/disassemble.c | |
parent | 729a53530e86972d1143553a415db34e6e01d5d2 (diff) | |
download | gdb-8152e0407c25612c6a8079cc8e1a5c1fe14afdbf.zip gdb-8152e0407c25612c6a8079cc8e1a5c1fe14afdbf.tar.gz gdb-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.c')
-rw-r--r-- | opcodes/disassemble.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/disassemble.c b/opcodes/disassemble.c index 290dcdd..48bc558 100644 --- a/opcodes/disassemble.c +++ b/opcodes/disassemble.c @@ -402,7 +402,7 @@ disassembler (enum bfd_architecture a, #endif #ifdef ARCH_riscv case bfd_arch_riscv: - disassemble = print_insn_riscv; + disassemble = riscv_get_disassembler (abfd); break; #endif #ifdef ARCH_rl78 |