-*- text -*-
+* RISC-V disassembly now supports -M,max option like QEMU to dump instruction
+ without checking architecture support as usual.
+
Changes in 2.43:
* The MIPS port now supports microMIPS MT Application Specific Extension
/* If set, disassemble as most general instruction. */
static bool no_aliases = false;
+/* If set, disassemble without checking architectire string, just like what
+ we did at the beginning. */
+static bool all_ext = false;
/* Set default RISC-V disassembler options. */
riscv_gpr_names = riscv_gpr_names_numeric;
riscv_fpr_names = riscv_fpr_names_numeric;
}
+ else if (strcmp (option, "max") == 0)
+ all_ext = true;
else
return false;
return true;
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))
+ if (!all_ext
+ && !riscv_multi_subset_supports (&riscv_rps_dis, op->insn_class))
continue;
/* It's a match. */