b46730c7ec
Make System an object that can be instantiated. For operating systems that don't need any OS specific hacks. python/m5/objects/AlphaConsole.py: python/m5/objects/BaseCPU.py: python/m5/objects/Tsunami.py: BaseSystem -> System --HG-- rename : python/m5/objects/BaseSystem.py => python/m5/objects/System.py extra : convert_revision : e5d12db02abef1b0eda720b50dd2c09cb1ac5232
26 lines
793 B
Python
26 lines
793 B
Python
from m5 import *
|
|
from Device import FooPioDevice
|
|
from Platform import Platform
|
|
|
|
class Tsunami(Platform):
|
|
type = 'Tsunami'
|
|
pciconfig = Param.PciConfigAll("PCI configuration")
|
|
system = Param.System(Parent.any, "system")
|
|
|
|
class TsunamiCChip(FooPioDevice):
|
|
type = 'TsunamiCChip'
|
|
tsunami = Param.Tsunami(Parent.any, "Tsunami")
|
|
|
|
class TsunamiFake(FooPioDevice):
|
|
type = 'TsunamiFake'
|
|
|
|
class TsunamiIO(FooPioDevice):
|
|
type = 'TsunamiIO'
|
|
time = Param.UInt64(1136073600,
|
|
"System time to use (0 for actual time, default is 1/1/06)")
|
|
tsunami = Param.Tsunami(Parent.any, "Tsunami")
|
|
frequency = Param.Frequency('1024Hz', "frequency of interrupts")
|
|
|
|
class TsunamiPChip(FooPioDevice):
|
|
type = 'TsunamiPChip'
|
|
tsunami = Param.Tsunami(Parent.any, "Tsunami")
|