716ceb6c10
arch/alpha/isa_traits.hh: Add in clear functions. cpu/base.cc: cpu/base.hh: Add in CPU progress event. cpu/base_dyn_inst.hh: Mimic normal registers in terms of writing/reading floats. cpu/checker/cpu.cc: cpu/checker/cpu.hh: cpu/checker/cpu_builder.cc: cpu/checker/o3_cpu_builder.cc: Fix up stuff. cpu/cpu_exec_context.cc: cpu/cpu_exec_context.hh: cpu/o3/cpu.cc: cpu/o3/cpu.hh: Bring up to speed with newmem. cpu/o3/alpha_cpu_builder.cc: Allow for progress intervals. cpu/o3/tournament_pred.cc: Fix up predictor. cpu/o3/tournament_pred.hh: cpu/ozone/cpu.hh: cpu/ozone/cpu_impl.hh: cpu/simple/cpu.cc: Fixes. cpu/ozone/cpu_builder.cc: Allow progress interval. cpu/ozone/front_end_impl.hh: Comment out this message. cpu/ozone/lw_back_end_impl.hh: Remove this. python/m5/objects/BaseCPU.py: Add progress interval. python/m5/objects/Root.py: Allow for stat reset. sim/serialize.cc: sim/stat_control.cc: Add in stats reset. --HG-- extra : convert_revision : fdb5ac5542099173cc30c40ea93372a065534b5e
27 lines
1.1 KiB
Python
27 lines
1.1 KiB
Python
from m5 import *
|
|
from HierParams import HierParams
|
|
from Serialize import Serialize
|
|
from Serialize import Statreset
|
|
from Statistics import Statistics
|
|
from Trace import Trace
|
|
from ExeTrace import ExecutionTrace
|
|
|
|
class Root(SimObject):
|
|
type = 'Root'
|
|
clock = Param.RootClock('200MHz', "tick frequency")
|
|
max_tick = Param.Tick('0', "maximum simulation ticks (0 = infinite)")
|
|
progress_interval = Param.Tick('0',
|
|
"print a progress message every n ticks (0 = never)")
|
|
output_file = Param.String('cout', "file to dump simulator output to")
|
|
checkpoint = Param.String('', "checkpoint file to load")
|
|
# hier = Param.HierParams(HierParams(do_data = False, do_events = True),
|
|
# "shared memory hierarchy parameters")
|
|
# stats = Param.Statistics(Statistics(), "statistics object")
|
|
# trace = Param.Trace(Trace(), "trace object")
|
|
# serialize = Param.Serialize(Serialize(), "checkpoint generation options")
|
|
hier = HierParams(do_data = False, do_events = True)
|
|
stats = Statistics()
|
|
trace = Trace()
|
|
exetrace = ExecutionTrace()
|
|
serialize = Serialize()
|
|
statsreset = Statreset()
|