]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/mn10300/op_utils.c
sim: mn10300: fix sim_engine_halt call
[thirdparty/binutils-gdb.git] / sim / mn10300 / op_utils.c
index 5425537dc1def519c09ad1f6a39c8dc9eb2fd0c5..5cb4158efd9e588340f71f57b8e61bdcb3183ea1 100644 (file)
@@ -155,7 +155,8 @@ do_syscall (SIM_DESC sd)
     {
       /* EXIT - caller can look in parm1 to work out the reason */
       sim_engine_halt (simulator, STATE_CPU (simulator, 0), NULL, PC,
-                      (parm1 == 0xdead ? SIM_SIGABRT : sim_exited), parm1);
+                      parm1 == 0xdead ? sim_stopped : sim_exited,
+                      parm1 == 0xdead ? SIM_SIGABRT : parm1);
     }
   else
     {