* interp.c (sim_resume): Clear State.exited.
authorJeff Law <law@redhat.com>
Tue, 24 Jun 1997 19:45:17 +0000 (19:45 +0000)
committerJeff Law <law@redhat.com>
Tue, 24 Jun 1997 19:45:17 +0000 (19:45 +0000)
        (sim_stop_reason): If State.exited is nonzero, then indicate that
        the simulator exited instead of stopped.
        * mn10300_sim.h (struct _state): Add exited field.
        * simops.c (syscall): Set State.exited for SYS_exit.

Fixes problem found bin Felix.

sim/mn10300/simops.c

index 239936a9c81c22de2a05b47400150320948fb4c4..c0243c26c51f1af9b67f8e1ff9c1f2ee9cba373b 100644 (file)
@@ -2940,6 +2940,7 @@ void OP_F020 (insn, extension)
        State.exception = SIGABRT;
       else
        State.exception = SIGQUIT;
+      State.exited = 1;
       break;
 
     case SYS_stat:     /* added at hmsi */