From 1e961d6c2a02e97ed5aed6a3767c931f8800bf47 Mon Sep 17 00:00:00 2001 From: Tsukasa OI Date: Mon, 11 Jul 2022 16:41:07 +0900 Subject: [PATCH] RISC-V: Add comment to riscv_disassemble_insn 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. --- opcodes/riscv-dis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opcodes/riscv-dis.c b/opcodes/riscv-dis.c index 5c4382b99f0..d281be99dec 100644 --- a/opcodes/riscv-dis.c +++ b/opcodes/riscv-dis.c @@ -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;