sim, arch, base: Refactor the base remote GDB class.
[gem5.git] / src / sim / clocked_object.hh
index 1ba5ca6176cfa92f604932d2b625f12fd871e368..b89e1ce13a8eacbccc2a96e7632861389cca92c1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012-2013, 2015 ARM Limited
+ * Copyright (c) 2012-2013, 2015-2016 ARM Limited
  * Copyright (c) 2013 Cornell University
  * All rights reserved
  *
@@ -51,7 +51,6 @@
 
 #include "base/callback.hh"
 #include "base/intmath.hh"
-#include "base/misc.hh"
 #include "enums/PwrState.hh"
 #include "params/ClockedObject.hh"
 #include "sim/core.hh"
@@ -236,11 +235,7 @@ class ClockedObject
     : public SimObject, public Clocked
 {
   public:
-    ClockedObject(const ClockedObjectParams *p)
-        : SimObject(p), Clocked(*p->clk_domain),
-        _currPwrState(p->default_p_state),
-        prvEvalTick(0)
-    { }
+    ClockedObject(const ClockedObjectParams *p);
 
     /** Parameters of ClockedObject */
     typedef ClockedObjectParams Params;
@@ -261,14 +256,14 @@ class ClockedObject
 
     /**
      * Record stats values like state residency by computing the time
-     * difference from previous update. Also, updates the previous
-     * evaluation tick once all stats are recorded.
+     * difference from previous update. Also, updates the previous evaluation
+     * tick once all stats are recorded.
      * Usually called on power state change and stats dump callback.
      */
     void computeStats();
 
     void pwrState(Enums::PwrState);
-    void regStats();
+    void regStats() override;
 
   protected: