public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] sim/riscv: Complete tidying up with SBREAK
@ 2022-09-05  8:42 Andrew Burgess
  0 siblings, 0 replies; only message in thread
From: Andrew Burgess @ 2022-09-05  8:42 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b9593cb70533f28d276ab8d582dfe622aa4591d5

commit b9593cb70533f28d276ab8d582dfe622aa4591d5
Author: Tsukasa OI <research_trasio@irq.a4lg.com>
Date:   Sun Sep 4 07:45:06 2022 +0000

    sim/riscv: Complete tidying up with SBREAK
    
    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".

Diff:
---
 sim/riscv/sim-main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sim/riscv/sim-main.c b/sim/riscv/sim-main.c
index 62f475671c9..30d2f1e1c9a 100644
--- a/sim/riscv/sim-main.c
+++ b/sim/riscv/sim-main.c
@@ -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:

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-05  8:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-05  8:42 [binutils-gdb] sim/riscv: Complete tidying up with SBREAK Andrew Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).