Skip to content
This repository has been archived by the owner on Aug 17, 2022. It is now read-only.

Commit

Permalink
disassemble rs3 argument ('r' modifiler)
Browse files Browse the repository at this point in the history
  • Loading branch information
linsinan1995 committed Nov 9, 2021
1 parent 1b71bd8 commit e78ce2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions opcodes/riscv-dis.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,11 @@ print_insn_args (const char *d, insn_t l, bfd_vma pc, disassemble_info *info)
riscv_gpr_names[EXTRACT_OPERAND (RS2, l)]);
break;

case 'r':
print (info->stream, "%s",
riscv_gpr_names[EXTRACT_OPERAND (RS3, l)]);
break;

case 'u':
print (info->stream, "0x%x",
(unsigned)EXTRACT_UTYPE_IMM (l) >> RISCV_IMM_BITS);
Expand Down

0 comments on commit e78ce2b

Please sign in to comment.