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:
@@ -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()
|
||||
|
||||
@@ -186,7 +186,7 @@ StatEvent::process()
|
||||
DumpNow();
|
||||
|
||||
if (flags & Stats::Reset) {
|
||||
cprintf("Resetting stats!\n");
|
||||
cprintf("Resetting stats at cycle %d!\n", curTick);
|
||||
reset();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user