From: Jeff Law Date: Tue, 24 Jun 1997 19:45:17 +0000 (+0000) Subject: * interp.c (sim_resume): Clear State.exited. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d05b86b7fbedf99179e079746d1f42f71e34bc14;p=binutils-gdb.git * 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. --- diff --git a/sim/mn10300/simops.c b/sim/mn10300/simops.c index 239936a9c81..c0243c26c51 100644 --- a/sim/mn10300/simops.c +++ b/sim/mn10300/simops.c @@ -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 */