summaryrefslogtreecommitdiff
path: root/src/sim/root.cc
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2011-02-16 10:57:04 -0500
committerNathan Binkert <nate@binkert.org>2011-02-16 10:57:04 -0500
commite3d8d43b176d3a1eb69a5e5d16469d42292e514a (patch)
treeedb7203cec174b20363dc8d698e860076cc1c79c /src/sim/root.cc
parentdfd4f6ad9395650f39057ceff8a6bf4d92408bfc (diff)
parent9836972a13576bcc7e9bfdf1e61b1d71ecb01cb7 (diff)
downloadgem5-e3d8d43b176d3a1eb69a5e5d16469d42292e514a.tar.xz
merge alpha system files into tree
Diffstat (limited to 'src/sim/root.cc')
-rw-r--r--src/sim/root.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/sim/root.cc b/src/sim/root.cc
index 1dc9b6058..d51fcbda6 100644
--- a/src/sim/root.cc
+++ b/src/sim/root.cc
@@ -108,7 +108,18 @@ Root::Root(RootParams *p) : SimObject(p), _enabled(false),
assert(_root == NULL);
_root = this;
lastTime.setTimer();
- timeSyncEnable(p->time_sync_enable);
+}
+
+void
+Root::initState()
+{
+ timeSyncEnable(params()->time_sync_enable);
+}
+
+void
+Root::loadState(Checkpoint *cp)
+{
+ timeSyncEnable(params()->time_sync_enable);
}
Root *