System.py revision 2424
1from m5 import *
2
3class System(SimObject):
4    type = 'System'
5    physmem = Param.PhysicalMemory(Parent.any, "phsyical memory")
6    if build_env['FULL_SYSTEM']:
7        boot_cpu_frequency = Param.Frequency(Self.cpu[0].clock.frequency,
8                                             "boot processor frequency")
9        memctrl = Param.MemoryController(Parent.any, "memory controller")
10        init_param = Param.UInt64(0, "numerical value to pass into simulator")
11        bin = Param.Bool(False, "is this system binned")
12        binned_fns = VectorParam.String([], "functions broken down and binned")
13        kernel = Param.String("file that contains the kernel code")
14        readfile = Param.String("", "file to read startup script from")
15
16class AlphaSystem(System):
17    type = 'AlphaSystem'
18    console = Param.String("file that contains the console code")
19    pal = Param.String("file that contains palcode")
20    boot_osflags = Param.String("a", "boot flags to pass to the kernel")
21    system_type = Param.UInt64("Type of system we are emulating")
22    system_rev = Param.UInt64("Revision of system we are emulating")
23