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:
Andrew Burgess 2022-10-03 10:59:57 +01:00
parent f4b581f2d1
commit e840e61cac

View File

@ -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;