public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
* [binutils-gdb] opcodes/riscv: style csr names as registers
@ 2022-10-04  8:51 Andrew Burgess
  0 siblings, 0 replies; only message in thread
From: Andrew Burgess @ 2022-10-04  8:51 UTC (permalink / raw)
  To: bfd-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e840e61cacd49836b0bdf692bb2ff7f66f969765

commit e840e61cacd49836b0bdf692bb2ff7f66f969765
Author: Andrew Burgess <aburgess@redhat.com>
Date:   Mon Oct 3 10:59:57 2022 +0100

    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.

Diff:
---
 opcodes/riscv-dis.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/opcodes/riscv-dis.c b/opcodes/riscv-dis.c
index 6ac69490b78..031c19334fa 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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-04  8:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-04  8:51 [binutils-gdb] opcodes/riscv: style csr names as registers Andrew Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).