diff options
-rw-r--r-- | sim/riscv/sim-main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/riscv/sim-main.c b/sim/riscv/sim-main.c index 52dca4a..0b05f1c 100644 --- a/sim/riscv/sim-main.c +++ b/sim/riscv/sim-main.c @@ -1040,7 +1040,7 @@ void step_once (SIM_CPU *cpu) for (; op->name; op++) { /* Does the opcode match? */ - if (! op->match_func (op, iw)) + if (! op->match_func || ! op->match_func (op, iw)) continue; /* Is this a pseudo-instruction and may we print it as such? */ if (op->pinfo & INSN_ALIAS) |