From 868d112578467273a50de3bf926bf0d280eebcd3 Mon Sep 17 00:00:00 2001 From: Lisa Hsu Date: Thu, 5 Oct 2006 13:18:32 -0400 Subject: 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 --- configs/example/fs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'configs/example') 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() -- cgit v1.2.3