From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1726) id E4EE83858D1E; Tue, 4 Oct 2022 08:51:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E4EE83858D1E Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Andrew Burgess To: bfd-cvs@sourceware.org Subject: [binutils-gdb] opcodes/riscv: style csr names as registers X-Act-Checkin: binutils-gdb X-Git-Author: Andrew Burgess X-Git-Refname: refs/heads/master X-Git-Oldrev: f4b581f2d1ac69c27a06a328e11763b44544aadb X-Git-Newrev: e840e61cacd49836b0bdf692bb2ff7f66f969765 Message-Id: <20221004085147.E4EE83858D1E@sourceware.org> Date: Tue, 4 Oct 2022 08:51:47 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Oct 2022 08:51:51 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3De840e61cacd4= 9836b0bdf692bb2ff7f66f969765 commit e840e61cacd49836b0bdf692bb2ff7f66f969765 Author: Andrew Burgess Date: Mon Oct 3 10:59:57 2022 +0100 opcodes/riscv: style csr names as registers =20 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 p= c, disassemble_info *info } =20 if (riscv_csr_hash[csr] !=3D 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;