Skip to content

Commit

Permalink
RISC-V: Add comment to riscv_disassemble_insn
Browse files Browse the repository at this point in the history
While other steps are annotated, extension test by instruction class was
not annotated or commented.

opcodes/ChangeLog:

	* riscv-dis.c (riscv_disassemble_insn) Add comment.
  • Loading branch information
a4lg committed Jul 13, 2022
1 parent 7856def commit df97f33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opcodes/riscv-dis.c
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ riscv_disassemble_insn (bfd_vma memaddr, insn_t word, disassemble_info *info)
/* Is this instruction restricted to a certain value of XLEN? */
if ((op->xlen_requirement != 0) && (op->xlen_requirement != xlen))
continue;

/* Is this instruction supported by the current architecture? */
if (!riscv_multi_subset_supports (&riscv_rps_dis, op->insn_class))
continue;

Expand Down

0 comments on commit df97f33

Please sign in to comment.