SCons: centralize the Dir() workaround for newer versions of scons.
[gem5.git] / src / cpu / FuncUnit.py
index 541bdbd835968d7775acc27ffd96024afa6881db..ad2d1b87b9f28bb3f7d2591830d9c3cfcd6ebac2 100644 (file)
 from m5.SimObject import SimObject
 from m5.params import *
 
-class OpType(Enum):
-    vals = ['(null)', 'IntAlu', 'IntMult', 'IntDiv', 'FloatAdd',
+class OpClass(Enum):
+    vals = ['No_OpClass', 'IntAlu', 'IntMult', 'IntDiv', 'FloatAdd',
             'FloatCmp', 'FloatCvt', 'FloatMult', 'FloatDiv', 'FloatSqrt',
             'MemRead', 'MemWrite', 'IprAccess', 'InstPrefetch']
 
 class OpDesc(SimObject):
     type = 'OpDesc'
     issueLat = Param.Int(1, "cycles until another can be issued")
-    opClass = Param.OpType("type of operation")
+    opClass = Param.OpClass("type of operation")
     opLat = Param.Int(1, "cycles until result is available")
 
 class FUDesc(SimObject):