summaryrefslogtreecommitdiff
path: root/configs/example
diff options
context:
space:
mode:
authorLisa Hsu <hsul@eecs.umich.edu>2006-10-05 13:18:32 -0400
committerLisa Hsu <hsul@eecs.umich.edu>2006-10-05 13:18:32 -0400
commit868d112578467273a50de3bf926bf0d280eebcd3 (patch)
treea26c855cad5ad9a11fd603976bf34c0fc89d71b2 /configs/example
parent4142f8f7c02ff18cb42a91bb8b9c2e0d847cf505 (diff)
downloadgem5-868d112578467273a50de3bf926bf0d280eebcd3.tar.xz
fix the argument to m5.simulate() on a checkpoint.
src/sim/stat_control.cc: add curTick to reset stats printf. --HG-- extra : convert_revision : da8cf5921e81b73f47d6831d539ca1fbdace3d1d
Diffstat (limited to 'configs/example')
-rw-r--r--configs/example/fs.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/configs/example/fs.py b/configs/example/fs.py
index 71c5961ef..31b31529f 100644
--- a/configs/example/fs.py
+++ b/configs/example/fs.py
@@ -124,6 +124,9 @@ exit_event = m5.simulate(maxtick)
while exit_event.getCause() == "checkpoint":
m5.checkpoint(root, "cpt.%d")
- exit_event = m5.simulate(maxtick - m5.curTick())
+ if maxtick == -1:
+ exit_event = m5.simulate(maxtick)
+ else:
+ exit_event = m5.simulate(maxtick - m5.curTick())
print 'Exiting @ cycle', m5.curTick(), 'because', exit_event.getCause()