diff options
author | Jim Wilson <jimw@sifive.com> | 2018-01-05 17:51:23 -0800 |
---|---|---|
committer | Jim Wilson <jimw@sifive.com> | 2018-01-05 17:51:23 -0800 |
commit | 35eeb78fa9535df6a273c053d8f102e046261b89 (patch) | |
tree | 74a18745c631ab06e4cd6b0619a099d97893a8ed /opcodes | |
parent | 77a502c03a347f0eb31e53e94cab528190c5bd1f (diff) | |
download | gdb-35eeb78fa9535df6a273c053d8f102e046261b89.zip gdb-35eeb78fa9535df6a273c053d8f102e046261b89.tar.gz gdb-35eeb78fa9535df6a273c053d8f102e046261b89.tar.bz2 |
RISC-V: Print symbol address for jalr w/ zero offset.
ld/
* testsuite/ld-riscv-elf/disas-jalr.d: New.
* testsuite/ld-riscv-elf/disas-jalr.s: New.
* testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run new testcase.
opcodes/
* riscv-dis.c (print_insn_args) <'s'>: Call maybe_print_address for a
jalr.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 5 | ||||
-rw-r--r-- | opcodes/riscv-dis.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 076cd14..fcfef76 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2018-01-05 Jim Wilson <jimw@sifive.com> + + * riscv-dis.c (print_insn_args) <'s'>: Call maybe_print_address for a + jalr. + 2018-01-03 Alan Modra <amodra@gmail.com> Update year range in copyright notice of all files. diff --git a/opcodes/riscv-dis.c b/opcodes/riscv-dis.c index 972cbcf..cc427b4 100644 --- a/opcodes/riscv-dis.c +++ b/opcodes/riscv-dis.c @@ -226,6 +226,8 @@ print_insn_args (const char *d, insn_t l, bfd_vma pc, disassemble_info *info) case 'b': case 's': + if ((l & MASK_JALR) == MATCH_JALR) + maybe_print_address (pd, rs1, 0); print (info->stream, "%s", riscv_gpr_names[rs1]); break; |