summaryrefslogtreecommitdiff
path: root/sim/mn10300/op_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/mn10300/op_utils.c')
-rw-r--r--sim/mn10300/op_utils.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/sim/mn10300/op_utils.c b/sim/mn10300/op_utils.c
index 36f387c9bd3..518df9b7e08 100644
--- a/sim/mn10300/op_utils.c
+++ b/sim/mn10300/op_utils.c
@@ -194,15 +194,8 @@ do_syscall (void)
if ( FUNC == TARGET_SYS_exit )
{
/* EXIT - caller can look in PARM1 to work out the reason */
- if (PARM1 == 0xdead)
- State.exception = SIGABRT;
- else
- {
- sim_engine_halt (simulator, STATE_CPU (simulator, 0), NULL, PC,
- sim_exited, PARM1);
- State.exception = SIGQUIT;
- }
- State.exited = 1;
+ sim_engine_halt (simulator, STATE_CPU (simulator, 0), NULL, PC,
+ (PARM1 == 0xdead ? SIM_SIGABRT : sim_exited), PARM1);
}
else
{