c720389366
of Param structs. objects/CoherenceProtocol.mpy: objects/Ide.mpy: Update for new Enum syntax. sim/pyconfig/m5config.py: More modest restructuring heading for auto-generating of param structs. - Revamped Enum handling: Enums are regular classes so they know their names now (makes it easier for generating C++ equivalents). - Created MetaSimObject class and moved some SimObject-specific stuff there (i.e. does not apply to ConfigNodes in general). --HG-- extra : convert_revision : a93b40dda3b038ebe8bffecac97e9079c22af561
14 lines
469 B
Text
14 lines
469 B
Text
from Pci import PciDevice
|
|
|
|
class IdeID(Enum): vals = ['master', 'slave']
|
|
|
|
simobj IdeDisk(SimObject):
|
|
type = 'IdeDisk'
|
|
delay = Param.Tick(1, "Fixed disk delay in microseconds")
|
|
driveID = Param.IdeID('master', "Drive ID")
|
|
image = Param.DiskImage("Disk image")
|
|
physmem = Param.PhysicalMemory(Super, "Physical memory")
|
|
|
|
simobj IdeController(PciDevice):
|
|
type = 'IdeController'
|
|
disks = VectorParam.IdeDisk("IDE disks attached to this controller")
|