diff options
author | Lisa Hsu <hsul@eecs.umich.edu> | 2006-10-05 13:18:32 -0400 |
---|---|---|
committer | Lisa Hsu <hsul@eecs.umich.edu> | 2006-10-05 13:18:32 -0400 |
commit | 868d112578467273a50de3bf926bf0d280eebcd3 (patch) | |
tree | a26c855cad5ad9a11fd603976bf34c0fc89d71b2 | |
parent | 4142f8f7c02ff18cb42a91bb8b9c2e0d847cf505 (diff) | |
download | gem5-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
-rw-r--r-- | configs/example/fs.py | 5 | ||||
-rw-r--r-- | src/sim/stat_control.cc | 2 |
2 files changed, 5 insertions, 2 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() diff --git a/src/sim/stat_control.cc b/src/sim/stat_control.cc index dfed2a0c8..3fad8beb5 100644 --- a/src/sim/stat_control.cc +++ b/src/sim/stat_control.cc @@ -186,7 +186,7 @@ StatEvent::process() DumpNow(); if (flags & Stats::Reset) { - cprintf("Resetting stats!\n"); + cprintf("Resetting stats at cycle %d!\n", curTick); reset(); } |