af2a600f99
python/m5/objects/Root.py: Add execution trace object. --HG-- extra : convert_revision : 1d1ba18779fd4d0b5af921c5f34b7a2bfb4b75d9
25 lines
1.1 KiB
Python
25 lines
1.1 KiB
Python
from m5 import *
|
|
from HierParams import HierParams
|
|
from Serialize import Serialize
|
|
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()
|