syscall_emul: don't check host fd when allocating target fd
[gem5.git] / src / sim / root.cc
index 2d28499a7f392649d6df0b7c838360158f7ae64d..7647ca5b7f88ead788c1ed65ce9a3336e2087e91 100644 (file)
@@ -32,6 +32,8 @@
  */
 
 #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"
@@ -110,6 +112,8 @@ Root::Root(RootParams *p) : SimObject(p), _enabled(false),
     assert(_root == NULL);
     _root = this;
     lastTime.setTimer();
+
+    simQuantum = p->sim_quantum;
 }
 
 void
@@ -119,11 +123,25 @@ Root::initState()
 }
 
 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;