sim-se: Add default to SyscallDesc constructor
[gem5.git] / src / sim / root.hh
index 76a508c19482201e5770501cee1e6f65adf9dd29..c5f42b807616acbe5fb93a2cf6dda326cc874993 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * 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
@@ -60,8 +60,7 @@ class Root : public SimObject
     Time lastTime;
 
     void timeSync();
-    EventWrapper<Root, &Root::timeSync> syncEvent;
-    friend class EventWrapper<Root, &Root::timeSync>;
+    EventFunctionWrapper syncEvent;
 
   public:
     /**
@@ -104,13 +103,11 @@ class Root : public SimObject
 
     Root(Params *p);
 
-    /** Schedule the timesync event at loadState() so that curTick is correct
+    /** Schedule the timesync event at startup().
      */
-    void loadState(Checkpoint *cp);
+    void startup() override;
 
-    /** Schedule the timesync event at initState() when not unserializing
-     */
-    void initState();
+    void serialize(CheckpointOut &cp) const override;
 };
 
 #endif // __SIM_ROOT_HH__