syscall_emul: fix warn_once behavior
[gem5.git] / src / sim / ClockedObject.py
index 26b0e234890ac8c535a51a98ca61def6a71b74ca..2562f1f01ff9f53e00731e21c72534d247caf331 100644 (file)
@@ -42,8 +42,8 @@ from m5.proxy import *
 class ClockedObject(SimObject):
     type = 'ClockedObject'
     abstract = True
+    cxx_header = "sim/clocked_object.hh"
 
-    # Clock period of this object, with the default value being the
-    # clock period of the parent object, unproxied at instantiation
-    # time
-    clock = Param.Clock(Parent.clock, "Clock speed")
+    # The clock domain this clocked object belongs to, inheriting the
+    # parent's clock domain by default
+    clk_domain = Param.ClockDomain(Parent.clk_domain, "Clock domain")