aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2022-10-03 10:59:57 +0100
committerAndrew Burgess <aburgess@redhat.com>2022-10-04 09:51:24 +0100
commite840e61cacd49836b0bdf692bb2ff7f66f969765 (patch)
tree077d23279541df44ae285bab46db4859fe3ca5e9
parentf4b581f2d1ac69c27a06a328e11763b44544aadb (diff)
downloadbinutils-e840e61cacd49836b0bdf692bb2ff7f66f969765.zip
binutils-e840e61cacd49836b0bdf692bb2ff7f66f969765.tar.gz
binutils-e840e61cacd49836b0bdf692bb2ff7f66f969765.tar.bz2
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.
-rw-r--r--opcodes/riscv-dis.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/opcodes/riscv-dis.c b/opcodes/riscv-dis.c
index 6ac6949..031c193 100644
--- a/opcodes/riscv-dis.c
+++ b/opcodes/riscv-dis.c
@@ -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;