System.py revision 3125
12329SN/Afrom m5.SimObject import SimObject
22329SN/Afrom m5.params import *
32329SN/Afrom m5.proxy import *
42329SN/Afrom m5 import build_env
52329SN/A
62329SN/Aclass MemoryMode(Enum): vals = ['invalid', 'atomic', 'timing']
72329SN/A
82329SN/Aclass System(SimObject):
92329SN/A    type = 'System'
102329SN/A    physmem = Param.PhysicalMemory(Parent.any, "phsyical memory")
112329SN/A    mem_mode = Param.MemoryMode('atomic', "The mode the memory system is in")
122329SN/A    if build_env['FULL_SYSTEM']:
132329SN/A        boot_cpu_frequency = Param.Frequency(Self.cpu[0].clock.frequency,
142329SN/A                                             "boot processor frequency")
152329SN/A        init_param = Param.UInt64(0, "numerical value to pass into simulator")
162329SN/A        boot_osflags = Param.String("a", "boot flags to pass to the kernel")
172329SN/A        kernel = Param.String("file that contains the kernel code")
182329SN/A        readfile = Param.String("", "file to read startup script from")
192329SN/A        symbolfile = Param.String("", "file to get the symbols from")
202329SN/A
212329SN/Aclass AlphaSystem(System):
222329SN/A    type = 'AlphaSystem'
232329SN/A    console = Param.String("file that contains the console code")
242329SN/A    pal = Param.String("file that contains palcode")
252329SN/A    system_type = Param.UInt64("Type of system we are emulating")
262329SN/A    system_rev = Param.UInt64("Revision of system we are emulating")
272689Sktlim@umich.edu