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
This commit is contained in:
Lisa Hsu
2006-10-05 13:18:32 -04:00
parent 4142f8f7c0
commit 868d112578
2 changed files with 5 additions and 2 deletions

View File

@@ -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()

View File

@@ -186,7 +186,7 @@ StatEvent::process()
DumpNow();
if (flags & Stats::Reset) {
cprintf("Resetting stats!\n");
cprintf("Resetting stats at cycle %d!\n", curTick);
reset();
}