summaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
Diffstat (limited to 'sim')
-rw-r--r--sim/main.cc1
-rw-r--r--sim/sim_events.cc2
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);
}
}