System.py revision 3125
1from m5.SimObject import SimObject
2from m5.params import *
3from m5.proxy import *
4from m5 import build_env
5
6class MemoryMode(Enum): vals = ['invalid', 'atomic', 'timing']
7
8class System(SimObject):
9    type = 'System'
10    physmem = Param.PhysicalMemory(Parent.any, "phsyical memory")
11    mem_mode = Param.MemoryMode('atomic', "The mode the memory system is in")
12    if build_env['FULL_SYSTEM']:
13        boot_cpu_frequency = Param.Frequency(Self.cpu[0].clock.frequency,
14                                             "boot processor frequency")
15        init_param = Param.UInt64(0, "numerical value to pass into simulator")
16        boot_osflags = Param.String("a", "boot flags to pass to the kernel")
17        kernel = Param.String("file that contains the kernel code")
18        readfile = Param.String("", "file to read startup script from")
19        symbolfile = Param.String("", "file to get the symbols from")
20
21class AlphaSystem(System):
22    type = 'AlphaSystem'
23    console = Param.String("file that contains the console code")
24    pal = Param.String("file that contains palcode")
25    system_type = Param.UInt64("Type of system we are emulating")
26    system_rev = Param.UInt64("Revision of system we are emulating")
27