summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
Diffstat (limited to 'configs')
-rw-r--r--configs/example/fs.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/configs/example/fs.py b/configs/example/fs.py
index 958fc4353..b26d31040 100644
--- a/configs/example/fs.py
+++ b/configs/example/fs.py
@@ -106,18 +106,18 @@ else:
m5.instantiate(root)
if options.maxtick:
- arg = options.maxtick
+ maxtick = options.maxtick
elif options.maxtime:
simtime = int(options.maxtime * root.clock.value)
print "simulating for: ", simtime
- arg = simtime
+ maxtick = simtime
else:
- arg = -1
+ maxtick = -1
-exit_event = m5.simulate(arg)
+exit_event = m5.simulate(maxtick)
while exit_event.getCause() == "checkpoint":
- m5.checkpoint(root, "cpt.%d")
- exit_event = m5.simulate(arg)
+ m5.checkpoint(root, "cpt.%d")
+ exit_event = m5.simulate(maxtick - m5.curTick())
print 'Exiting @ cycle', m5.curTick(), 'because', exit_event.getCause()