Skip to content

Commit

Permalink
sim/riscv: Complete tidying up with SBREAK
Browse files Browse the repository at this point in the history
This commit removes SBREAK-related references on the simulator as it's
renamed to EBREAK in 2016 (the RISC-V ISA, version 2.1).

sim/ChangeLog:

	* riscv/sim-main.c (execute_i): Use "ebreak" instead of "sbreak".
  • Loading branch information
a4lg committed Sep 4, 2022
1 parent d236680 commit a5eebc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sim/riscv/sim-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,9 +583,9 @@ execute_i (SIM_CPU *cpu, unsigned_word iw, const struct riscv_opcode *op)
case MATCH_FENCE_I:
TRACE_INSN (cpu, "fence.i;");
break;
case MATCH_SBREAK:
TRACE_INSN (cpu, "sbreak;");
/* GDB expects us to step over SBREAK. */
case MATCH_EBREAK:
TRACE_INSN (cpu, "ebreak;");
/* GDB expects us to step over EBREAK. */
sim_engine_halt (sd, cpu, NULL, cpu->pc + 4, sim_stopped, SIM_SIGTRAP);
break;
case MATCH_ECALL:
Expand Down

0 comments on commit a5eebc4

Please sign in to comment.