Merge ktlim@zamp:./local/clean/o3-merge/m5
[gem5.git] / src / python / m5 / objects / System.py
1 from m5.SimObject import SimObject
2 from m5.params import *
3 from m5.proxy import *
4 from m5 import build_env
5
6 class MemoryMode(Enum): vals = ['invalid', 'atomic', 'timing']
7
8 class 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
21 class 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")