diff options
Diffstat (limited to 'configs/example')
-rw-r--r-- | configs/example/fs.py | 5 |
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() |