diff options
Diffstat (limited to 'sim/common/sim-resume.c')
-rw-r--r-- | sim/common/sim-resume.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sim/common/sim-resume.c b/sim/common/sim-resume.c index 09b475e..8cf75d5 100644 --- a/sim/common/sim-resume.c +++ b/sim/common/sim-resume.c @@ -70,6 +70,11 @@ sim_resume (SIM_DESC sd, if (next_cpu_nr >= nr_cpus) next_cpu_nr = 0; + /* Only deliver the siggnal ]sic] the first time through - don't + re-deliver any siggnal during a restart. */ + if (jmpval == sim_engine_restart_jmpval) + siggnal = 0; + #ifdef SIM_CPU_EXCEPTION_RESUME { sim_cpu* cpu = STATE_CPU (sd, next_cpu_nr); |