8031cd93b5
Fix description for Bus clock_ratio (no longer a ratio). Add Clock param type (generic Frequency or Latency). cpu/base_cpu.cc: cpu/base_cpu.hh: cpu/beta_cpu/alpha_full_cpu_builder.cc: cpu/simple_cpu/simple_cpu.cc: dev/ide_ctrl.cc: dev/ns_gige.cc: dev/ns_gige.hh: dev/pciconfigall.cc: dev/sinic.cc: dev/tsunami_cchip.cc: dev/tsunami_io.cc: dev/tsunami_pchip.cc: dev/uart.cc: python/m5/objects/BaseCPU.py: python/m5/objects/BaseCache.py: python/m5/objects/BaseSystem.py: python/m5/objects/Bus.py: python/m5/objects/Ethernet.py: python/m5/objects/Root.py: sim/universe.cc: Standardize clock parameter names to 'clock'. Fix description for Bus clock_ratio (no longer a ratio). python/m5/config.py: Minor tweaks on Frequency/Latency: - added new Clock param type to avoid ambiguities - factored out init code into getLatency() - made RootFrequency *not* a subclass of Frequency so it can't be directly assigned to a Frequency paremeter --HG-- extra : convert_revision : fc4bb8562df171b454bbf696314cda57e1ec8506
18 lines
1 KiB
Python
18 lines
1 KiB
Python
from m5 import *
|
|
class BaseSystem(SimObject):
|
|
type = 'BaseSystem'
|
|
abstract = True
|
|
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")
|
|
kernel = Param.String("file that contains the kernel code")
|
|
console = Param.String("file that contains the console code")
|
|
pal = Param.String("file that contains palcode")
|
|
readfile = Param.String("", "file to read startup script from")
|
|
init_param = Param.UInt64(0, "numerical value to pass into simulator")
|
|
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")
|
|
bin = Param.Bool(False, "is this system binned")
|
|
binned_fns = VectorParam.String([], "functions broken down and binned")
|