projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d86bed1
)
Make the exit after max checkpoints code compile.
author
Nathan Binkert
<binkertn@umich.edu>
Wed, 13 Apr 2005 18:26:56 +0000
(14:26 -0400)
committer
Nathan Binkert
<binkertn@umich.edu>
Wed, 13 Apr 2005 18:26:56 +0000
(14:26 -0400)
sim/serialize.cc:
call exitNow instead of SimExit. Include the header too.
--HG--
extra : convert_revision :
633a8533b23cac914a2b09bd2d3ea5d85243c675
sim/serialize.cc
patch
|
blob
|
history
diff --git
a/sim/serialize.cc
b/sim/serialize.cc
index 1976e6b3c7e34b051e4fbf8014995ef9ab8e2b39..52008c3949309285e13648073355f8ac030b80d7 100644
(file)
--- a/
sim/serialize.cc
+++ b/
sim/serialize.cc
@@
-46,6
+46,7
@@
#include "sim/param.hh"
#include "sim/serialize.hh"
#include "sim/sim_events.hh"
+#include "sim/sim_exit.hh"
#include "sim/sim_object.hh"
using namespace std;
@@
-228,7
+229,7
@@
void
Serializable::serializeAll()
{
if (maxCount && count++ > maxCount)
-
SimExit("Maximum number of checkpoints dropped"
);
+
exitNow("Maximum number of checkpoints dropped", 0
);
string dir = Checkpoint::dir();
if (mkdir(dir.c_str(), 0775) == -1 && errno != EEXIST)