From 9af5dcea8f103c6385dc2244dfb654ad7c7e928d Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Mon, 12 May 1997 08:33:56 +0000 Subject: [PATCH] Clear cntrl-c after handling it. --- sim/tic80/ChangeLog | 6 ++++++ sim/tic80/interp.c | 2 +- sim/tic80/sim-calls.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/sim/tic80/ChangeLog b/sim/tic80/ChangeLog index 8df333eed99..5752ea6b159 100644 --- a/sim/tic80/ChangeLog +++ b/sim/tic80/ChangeLog @@ -1,5 +1,11 @@ Mon May 12 11:12:24 1997 Andrew Cagney + * sim-calls.c (sim_stop_reason): Restore keep_running after a + CNTRL-C, don't re-clear it. + + * interp.c (engine_error): stop rather than signal with SIGABRT + when an error. + * insns (do_ld): For 64bit loads, always store LSW in rDest, MSW in rDest + 1. Also done by Michael Meissner (do_st): Converse for store. diff --git a/sim/tic80/interp.c b/sim/tic80/interp.c index 8fda2879b4d..072b9be1b0f 100644 --- a/sim/tic80/interp.c +++ b/sim/tic80/interp.c @@ -62,7 +62,7 @@ engine_error (SIM_DESC sd, if (sd->halt_ok) { sim_io_eprintf (sd, "\n"); - engine_halt (sd, cpu, cia, sim_signalled, SIGABRT); + engine_halt (sd, cpu, cia, sim_stopped, SIGABRT); } else sim_io_error (sd, " - aborting simulation"); diff --git a/sim/tic80/sim-calls.c b/sim/tic80/sim-calls.c index ae3f2ab9786..3677d8caac2 100644 --- a/sim/tic80/sim-calls.c +++ b/sim/tic80/sim-calls.c @@ -237,7 +237,7 @@ sim_stop_reason (SIM_DESC sd, enum sim_stop *reason, int *sigrc) { *reason = sim_stopped; *sigrc = SIGINT; - keep_running = 0; + keep_running = 1; } else { -- 2.30.2