cpu: Correctly call parent on switchOut() and takeOverFrom()
[gem5.git] / src / cpu / FuncUnit.py
index 002546f263f9ed1835c8ff4094b0bccdd2c1199b..0bb23e876d0690aff21720905d99ad7ff44b7634 100644 (file)
@@ -53,11 +53,13 @@ class OpClass(Enum):
 
 class OpDesc(SimObject):
     type = 'OpDesc'
-    issueLat = Param.Int(1, "cycles until another can be issued")
+    cxx_header = "cpu/func_unit.hh"
+    issueLat = Param.Cycles(1, "cycles until another can be issued")
     opClass = Param.OpClass("type of operation")
-    opLat = Param.Int(1, "cycles until result is available")
+    opLat = Param.Cycles(1, "cycles until result is available")
 
 class FUDesc(SimObject):
     type = 'FUDesc'
+    cxx_header = "cpu/func_unit.hh"
     count = Param.Int("number of these FU's available")
     opList = VectorParam.OpDesc("operation classes for this FU type")