diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2006-08-20 19:28:58 -0700 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2006-08-20 19:28:58 -0700 |
commit | b83d0e5544c07b8432c9b854cd404f0b69768dd2 (patch) | |
tree | 080ad1a5cb902c7d10a6a98a0cac9025e620e75c | |
parent | 5d17465d93539068a6347dc882dab85695a5bc14 (diff) | |
download | gem5-b83d0e5544c07b8432c9b854cd404f0b69768dd2.tar.xz |
configs/example/fs.py:
Arg to m5.simulate() is a delta, not an absolute curTick value.
I didn't test this change, but I'm not convinced the previous
example was tested either, so I don't feel too badly about it.
configs/example/fs.py:
Arg to m5.simulate() is a delta, not an absolute curTick value.
I didn't test this change, but I'm not convinced the previous
example was tested either, so I don't feel too badly about it.
--HG--
extra : convert_revision : ef7df7b83b3e2b5da02408c674169ccbed75a441
-rw-r--r-- | configs/example/fs.py | 12 |
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() |