From b83d0e5544c07b8432c9b854cd404f0b69768dd2 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Sun, 20 Aug 2006 19:28:58 -0700 Subject: [PATCH] configs/example/fs.py: Arg to m5.simulate() is a delta, not an absolute curTick value. I didn't test this change, but I'm not convinced the previous example was tested either, so I don't feel too badly about it. configs/example/fs.py: Arg to m5.simulate() is a delta, not an absolute curTick value. I didn't test this change, but I'm not convinced the previous example was tested either, so I don't feel too badly about it. --HG-- extra : convert_revision : ef7df7b83b3e2b5da02408c674169ccbed75a441 --- configs/example/fs.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/configs/example/fs.py b/configs/example/fs.py index 958fc4353..b26d31040 100644 --- a/configs/example/fs.py +++ b/configs/example/fs.py @@ -106,18 +106,18 @@ else: m5.instantiate(root) if options.maxtick: - arg = options.maxtick + maxtick = options.maxtick elif options.maxtime: simtime = int(options.maxtime * root.clock.value) print "simulating for: ", simtime - arg = simtime + maxtick = simtime else: - arg = -1 + maxtick = -1 -exit_event = m5.simulate(arg) +exit_event = m5.simulate(maxtick) while exit_event.getCause() == "checkpoint": - m5.checkpoint(root, "cpt.%d") - exit_event = m5.simulate(arg) + m5.checkpoint(root, "cpt.%d") + exit_event = m5.simulate(maxtick - m5.curTick()) print 'Exiting @ cycle', m5.curTick(), 'because', exit_event.getCause()