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
This commit is contained in:
Steve Reinhardt 2006-08-20 19:28:58 -07:00
parent 5d17465d93
commit b83d0e5544

View file

@ -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()