mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 10:03:47 +08:00
opcodes/riscv: style csr names as registers
While reviewing another patch I noticed that RISC-V CSR names are given the text style, not the register style. This patch fixes this mistake.
This commit is contained in:
parent
f4b581f2d1
commit
e840e61cac
@ -547,7 +547,8 @@ print_insn_args (const char *oparg, insn_t l, bfd_vma pc, disassemble_info *info
|
||||
}
|
||||
|
||||
if (riscv_csr_hash[csr] != NULL)
|
||||
print (info->stream, dis_style_text, "%s", riscv_csr_hash[csr]);
|
||||
print (info->stream, dis_style_register, "%s",
|
||||
riscv_csr_hash[csr]);
|
||||
else
|
||||
print (info->stream, dis_style_text, "0x%x", csr);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user