summaryrefslogtreecommitdiff
path: root/python/m5
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2005-06-22 09:59:13 -0400
committerNathan Binkert <binkertn@umich.edu>2005-06-22 09:59:13 -0400
commit91f5736fd3fe989a7d5f3db10070fdedea36e1b4 (patch)
treefd62e362e7024addd0ec893d4fc9a6d19a12e2f8 /python/m5
parent1331a723c3113497deb63d0503ab49709d64b0c2 (diff)
downloadgem5-91f5736fd3fe989a7d5f3db10070fdedea36e1b4.tar.xz
Move max_time and progress_interval parameters to the Root
object and get rid of the ParamContext that each used to have. python/m5/objects/Root.py: Add max_time and progress_interval to the Root object sim/root.cc: Add max_time and progress_interval to the Root object. These parameters used to be in their own contexts in sim_events.cc sim/sim_events.cc: Get rid of the ParamContext for max cycles and the progress event. Move the functionality to the Root object sim/sim_events.hh: Move ProgressEvent declaration to the header so that it can be used in other files. --HG-- extra : convert_revision : ff664b806855e8eb9201b8a25392aa53204464f0
Diffstat (limited to 'python/m5')
-rw-r--r--python/m5/objects/Root.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/m5/objects/Root.py b/python/m5/objects/Root.py
index 79e3721fc..a5aaadd8c 100644
--- a/python/m5/objects/Root.py
+++ b/python/m5/objects/Root.py
@@ -7,6 +7,9 @@ from Trace import Trace
class Root(SimObject):
type = 'Root'
clock = Param.RootClock('200MHz', "tick frequency")
+ max_time = Param.Latency('0ns', "maximum simulation time (0 = infinite)")
+ progress_interval = Param.Latency('0ns',
+ "print a progress message at a regular interval (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),