* interp.c (sim_resume): Clear State.exited.

(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.
This commit is contained in:
Jeff Law 1997-06-24 19:45:17 +00:00
parent a90f6864be
commit d05b86b7fb

View 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 */