sim-se: Add default to SyscallDesc constructor
[gem5.git] / src / sim / voltage_domain.cc
index b82efda33012d3d01854ef624364de639c0ae011..6f32dc7c009efe246fa4972943bbdde0c561c24f 100644 (file)
  *          Akash Bagdia
  */
 
+#include "sim/voltage_domain.hh"
+
 #include <algorithm>
 
 #include "base/statistics.hh"
+#include "base/trace.hh"
 #include "debug/VoltageDomain.hh"
 #include "params/VoltageDomain.hh"
 #include "sim/sim_object.hh"
-#include "sim/voltage_domain.hh"
 
 VoltageDomain::VoltageDomain(const Params *p)
     : SimObject(p), voltageOpPoints(p->voltage), _perfLevel(0)
@@ -128,6 +130,8 @@ VoltageDomain::startup() {
 void
 VoltageDomain::regStats()
 {
+    SimObject::regStats();
+
     currentVoltage
         .method(this, &VoltageDomain::voltage)
         .name(params()->name + ".voltage")