sim: Add an option to forward work items to Python
[gem5.git] / src / sim / root.hh
index 6a7b5dc938792f0c038b7fb6ecd0cf69adbd26be..7273a077b256185ecc882b34a23ca504aefe2548 100644 (file)
@@ -106,15 +106,14 @@ class Root : public SimObject
 
     /** Schedule the timesync event at loadState() so that curTick is correct
      */
-    void loadState(Checkpoint *cp);
+    void loadState(CheckpointIn &cp) override;
 
     /** Schedule the timesync event at initState() when not unserializing
      */
-    void initState();
-
-    virtual void serialize(std::ostream &os);
-    virtual void unserialize(Checkpoint *cp, const std::string &section);
+    void initState() override;
 
+    void serialize(CheckpointOut &cp) const override;
+    void unserialize(CheckpointIn &cp) override;
 };
 
 #endif // __SIM_ROOT_HH__