From: Steve Reinhardt Date: Mon, 21 Aug 2006 02:28:58 +0000 (-0700) Subject: configs/example/fs.py: X-Git-Tag: m5_2.0_beta1_patch1~15 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b83d0e5544c07b8432c9b854cd404f0b69768dd2;p=gem5.git 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 --- 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()