diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2003-12-09 20:25:52 -0800 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2003-12-09 20:25:52 -0800 |
commit | db6038937d126ec11e7745a1182c69f79b92f41f (patch) | |
tree | 93d184d929b5337b452b33a6171674662ed4d6d0 /sim | |
parent | 3d8cd2046792b6f3b270e80bad79f2aec921761b (diff) | |
download | gem5-db6038937d126ec11e7745a1182c69f79b92f41f.tar.xz |
Minor fixes. Somehow do-tests.pl suddenly started failing
on test5 because of a wrong exit code; fixed that.
sim/main.cc:
No need to ignore SIGPIPE, as far as I know.
sim/sim_events.cc:
A CountedExitEvent is a normal termination, so
should have an exit code of 0.
--HG--
extra : convert_revision : 8b5072aca54f3ca08b2815b73ac01c00e4da49b6
Diffstat (limited to 'sim')
-rw-r--r-- | sim/main.cc | 1 | ||||
-rw-r--r-- | sim/sim_events.cc | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/sim/main.cc b/sim/main.cc index 4fb075a2a..f697aebce 100644 --- a/sim/main.cc +++ b/sim/main.cc @@ -225,7 +225,6 @@ main(int argc, char **argv) myProgName = argv[0]; signal(SIGFPE, SIG_IGN); // may occur on misspeculated paths - signal(SIGPIPE, SIG_IGN); signal(SIGTRAP, SIG_IGN); signal(SIGUSR1, dumpStatsHandler); // dump intermediate stats signal(SIGUSR2, dumprstStatsHandler); // dump and reset stats diff --git a/sim/sim_events.cc b/sim/sim_events.cc index 98d3b086d..7456e788b 100644 --- a/sim/sim_events.cc +++ b/sim/sim_events.cc @@ -86,7 +86,7 @@ void CountedExitEvent::process() { if (--downCounter == 0) { - new SimExitEvent(cause, 1); + new SimExitEvent(cause, 0); } } |