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 11, 2022
1 parent c5bed3a commit 1e961d6
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 @@ -728,7 +728,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 1e961d6

Please sign in to comment.