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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue