Rename enum from OpType to OpClass so it's consistent with the
real thing. Also rename the null case to something that can be a C++ symbol. --HG-- extra : convert_revision : e3bfc4065b59c21f613e486d234711c48d7c9070
This commit is contained in:
parent
d14256f9ba
commit
125237d357
2 changed files with 4 additions and 4 deletions
|
@ -29,15 +29,15 @@
|
|||
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):
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
const char *
|
||||
opClassStrings[Num_OpClasses] =
|
||||
{
|
||||
"(null)",
|
||||
"No_OpClass",
|
||||
"IntAlu",
|
||||
"IntMult",
|
||||
"IntDiv",
|
||||
|
|
Loading…
Reference in a new issue