[PATCH/committed,1/2] sim: mn10300: switch abort to sim_engine_abort

Message ID 20210615034733.28752-1-vapier@gentoo.org
State New
Headers show
Series
  • [PATCH/committed,1/2] sim: mn10300: switch abort to sim_engine_abort
Related show

Commit Message

Eli Zaretskii via Gdb-patches June 15, 2021, 3:47 a.m.
This allows the caller to catch engine aborts if they want, and fixes
the warning about missing stdlib.h include by not using abort().
---
 sim/mn10300/ChangeLog    | 4 ++++
 sim/mn10300/mn10300.igen | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

-- 
2.31.1

Patch

diff --git a/sim/mn10300/ChangeLog b/sim/mn10300/ChangeLog
index 9a2c1d1929ca..ff7d6c18f117 100644
--- a/sim/mn10300/ChangeLog
+++ b/sim/mn10300/ChangeLog
@@ -1,3 +1,7 @@ 
+2021-06-14  Mike Frysinger  <vapier@gentoo.org>
+
+	* mn10300.igen: Change abort to sim_engine_abort.
+
 2021-06-12  Mike Frysinger  <vapier@gentoo.org>
 
 	* configure.ac: Delete call to SIM_AC_OPTION_ALIGNMENT.
diff --git a/sim/mn10300/mn10300.igen b/sim/mn10300/mn10300.igen
index 80a394309c90..f67468da17eb 100644
--- a/sim/mn10300/mn10300.igen
+++ b/sim/mn10300/mn10300.igen
@@ -3624,7 +3624,7 @@ 
 {
   /* OP_F0FF (); */
   PC = cia;
-  abort ();
+  sim_engine_abort (SD, CPU, cia, "F0FF");
 }