/*
* Copyright (c) 2002-2005 The Regents of The University of Michigan
- * Copyright (c) 2011 Advanced Micro Devices
+ * Copyright (c) 2011 Advanced Micro Devices, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
*/
#include "base/misc.hh"
+#include "base/trace.hh"
+#include "config/the_isa.hh"
#include "debug/TimeSync.hh"
+#include "sim/full_system.hh"
#include "sim/root.hh"
Root *Root::_root = NULL;
assert(_root == NULL);
_root = this;
lastTime.setTimer();
+
+ simQuantum = p->sim_quantum;
}
void
}
void
-Root::loadState(Checkpoint *cp)
+Root::loadState(CheckpointIn &cp)
{
+ SimObject::loadState(cp);
timeSyncEnable(params()->time_sync_enable);
}
+void
+Root::serialize(CheckpointOut &cp) const
+{
+ SERIALIZE_SCALAR(FullSystem);
+ std::string isa = THE_ISA_STR;
+ SERIALIZE_SCALAR(isa);
+}
+
+void
+Root::unserialize(CheckpointIn &cp)
+{}
+
+
+bool FullSystem;
+unsigned int FullSystemInt;
+
Root *
RootParams::create()
{
created = true;
+ FullSystem = full_system;
+ FullSystemInt = full_system ? 1 : 0;
+
return new Root(this);
}