summaryrefslogtreecommitdiff
path: root/sim/serialize.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sim/serialize.cc')
-rw-r--r--sim/serialize.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/sim/serialize.cc b/sim/serialize.cc
index 3a073f68d..d5f217e55 100644
--- a/sim/serialize.cc
+++ b/sim/serialize.cc
@@ -333,11 +333,7 @@ SerializeParamContext::~SerializeParamContext()
void
SerializeParamContext::checkParams()
{
- if (serialize_dir.isValid()) {
- checkpointDirBase = serialize_dir;
- } else {
- checkpointDirBase = outputDirectory + "cpt.%012d";
- }
+ checkpointDirBase = outputDirectory + (string)serialize_dir;
// guarantee that directory ends with a '/'
if (checkpointDirBase[checkpointDirBase.size() - 1] != '/')