System.py revision 3125
15420Sgblack@eecs.umich.edufrom m5.SimObject import SimObject
25081Sgblack@eecs.umich.edufrom m5.params import *
35081Sgblack@eecs.umich.edufrom m5.proxy import *
47087Snate@binkert.orgfrom m5 import build_env
57087Snate@binkert.org
67087Snate@binkert.orgclass MemoryMode(Enum): vals = ['invalid', 'atomic', 'timing']
77087Snate@binkert.org
87087Snate@binkert.orgclass System(SimObject):
97087Snate@binkert.org    type = 'System'
107087Snate@binkert.org    physmem = Param.PhysicalMemory(Parent.any, "phsyical memory")
117087Snate@binkert.org    mem_mode = Param.MemoryMode('atomic', "The mode the memory system is in")
125081Sgblack@eecs.umich.edu    if build_env['FULL_SYSTEM']:
137087Snate@binkert.org        boot_cpu_frequency = Param.Frequency(Self.cpu[0].clock.frequency,
147087Snate@binkert.org                                             "boot processor frequency")
157087Snate@binkert.org        init_param = Param.UInt64(0, "numerical value to pass into simulator")
167087Snate@binkert.org        boot_osflags = Param.String("a", "boot flags to pass to the kernel")
177087Snate@binkert.org        kernel = Param.String("file that contains the kernel code")
187087Snate@binkert.org        readfile = Param.String("", "file to read startup script from")
197087Snate@binkert.org        symbolfile = Param.String("", "file to get the symbols from")
207087Snate@binkert.org
215081Sgblack@eecs.umich.educlass AlphaSystem(System):
227087Snate@binkert.org    type = 'AlphaSystem'
235081Sgblack@eecs.umich.edu    console = Param.String("file that contains the console code")
245081Sgblack@eecs.umich.edu    pal = Param.String("file that contains palcode")
255081Sgblack@eecs.umich.edu    system_type = Param.UInt64("Type of system we are emulating")
265081Sgblack@eecs.umich.edu    system_rev = Param.UInt64("Revision of system we are emulating")
275081Sgblack@eecs.umich.edu