summaryrefslogtreecommitdiff
path: root/src/sim/root.cc
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2012-01-28 07:24:34 -0800
committerGabe Black <gblack@eecs.umich.edu>2012-01-28 07:24:34 -0800
commitec20ee2f7cdaff22e63a5ae492f925d0d4839849 (patch)
treea4f7ee8e32356f97fa35df32e645711160296642 /src/sim/root.cc
parenteab5c602865bcd399f069f332edd42c4ea4edffe (diff)
downloadgem5-ec20ee2f7cdaff22e63a5ae492f925d0d4839849.tar.xz
SE/FS: Make SE vs. FS mode a runtime parameter.
Diffstat (limited to 'src/sim/root.cc')
-rw-r--r--src/sim/root.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sim/root.cc b/src/sim/root.cc
index dd7c12077..c47ada30e 100644
--- a/src/sim/root.cc
+++ b/src/sim/root.cc
@@ -33,6 +33,7 @@
#include "base/misc.hh"
#include "debug/TimeSync.hh"
+#include "sim/full_system.hh"
#include "sim/root.hh"
Root *Root::_root = NULL;
@@ -123,6 +124,8 @@ Root::loadState(Checkpoint *cp)
timeSyncEnable(params()->time_sync_enable);
}
+bool FullSystem;
+
Root *
RootParams::create()
{
@@ -132,5 +135,7 @@ RootParams::create()
created = true;
+ FullSystem = full_system;
+
return new Root(this);
}