summaryrefslogtreecommitdiff
path: root/opcodes/riscv-dis.c
diff options
context:
space:
mode:
authorTsukasa OI <research_trasio@irq.a4lg.com>2022-09-26 10:47:53 +0000
committerTsukasa OI <research_trasio@irq.a4lg.com>2022-10-06 02:23:31 +0000
commita13886e2198beb78b81c59839043b021ce6df78a (patch)
tree328bc72f3ded89280916f791e026a99fbc7ec4f4 /opcodes/riscv-dis.c
parent15543290129fde8b89b71f6e6494b88ca833c59c (diff)
downloadbinutils-gdb-a13886e2198beb78b81c59839043b021ce6df78a.tar.gz
RISC-V: Print XTheadMemPair literal as "immediate"
The operand type "Xl(...)" denotes that (...) is a literal. Specifically, they are intended to be a constant immediate value. This commit prints "Xl(...)" operand with dis_style_immediate style, not dis_style_text. opcodes/ChangeLog: * riscv-dis.c (print_insn_args): Use dis_style_immediate on the constant literal of the "Xl..." operand.
Diffstat (limited to 'opcodes/riscv-dis.c')
-rw-r--r--opcodes/riscv-dis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/riscv-dis.c b/opcodes/riscv-dis.c
index 9d733565549..27a6bfe2283 100644
--- a/opcodes/riscv-dis.c
+++ b/opcodes/riscv-dis.c
@@ -578,7 +578,7 @@ print_insn_args (const char *oparg, insn_t l, bfd_vma pc, disassemble_info *info
oparg++;
while (*oparg && *oparg != ',')
{
- print (info->stream, dis_style_text, "%c", *oparg);
+ print (info->stream, dis_style_immediate, "%c", *oparg);
oparg++;
}
oparg--;