4a2c50bc8f
arch/alpha/freebsd/system.cc: arch/alpha/isa/decoder.isa: arch/alpha/linux/system.cc: arch/alpha/system.cc: arch/alpha/tru64/system.cc: Let symbol files be read in so that profiling can happen on the binaries as well. python/m5/objects/System.py: Add in symbol files. sim/pseudo_inst.cc: Load in a specified symbol file. sim/pseudo_inst.hh: Allow for symbols to be loaded. sim/system.hh: Support symbol file. util/m5/m5.c: util/m5/m5op.S: Add support to m5 util for loading symbols (and readfile). --HG-- extra : convert_revision : f10c1049bcd7b22b98c73052c0666b964aff222b
22 lines
1.1 KiB
Python
22 lines
1.1 KiB
Python
from m5 import *
|
|
|
|
class System(SimObject):
|
|
type = 'System'
|
|
boot_cpu_frequency = Param.Frequency(Self.cpu[0].clock.frequency,
|
|
"boot processor frequency")
|
|
memctrl = Param.MemoryController(Parent.any, "memory controller")
|
|
physmem = Param.PhysicalMemory(Parent.any, "phsyical memory")
|
|
init_param = Param.UInt64(0, "numerical value to pass into simulator")
|
|
bin = Param.Bool(False, "is this system binned")
|
|
binned_fns = VectorParam.String([], "functions broken down and binned")
|
|
kernel = Param.String("file that contains the kernel code")
|
|
readfile = Param.String("", "file to read startup script from")
|
|
symbolfile = Param.String("", "file to get the symbols from")
|
|
|
|
class AlphaSystem(System):
|
|
type = 'AlphaSystem'
|
|
console = Param.String("file that contains the console code")
|
|
pal = Param.String("file that contains palcode")
|
|
boot_osflags = Param.String("a", "boot flags to pass to the kernel")
|
|
system_type = Param.UInt64("Type of system we are emulating")
|
|
system_rev = Param.UInt64("Revision of system we are emulating")
|