ensure that there is a "/" between the cptdir and the cpt.%d.
--HG-- extra : convert_revision : 9aed7c3aecad10b039f3cfb26e04a7950be6bed1
This commit is contained in:
parent
13cbd4e94b
commit
fe2698c435
1 changed files with 3 additions and 3 deletions
|
@ -135,7 +135,7 @@ def run(options, root, testsys):
|
||||||
exit_event = m5.simulate(when - m5.curTick())
|
exit_event = m5.simulate(when - m5.curTick())
|
||||||
|
|
||||||
if exit_event.getCause() == "simulate() limit reached":
|
if exit_event.getCause() == "simulate() limit reached":
|
||||||
m5.checkpoint(root, cptdir + "cpt.%d")
|
m5.checkpoint(root, "/".join([cptdir,"cpt.%d"]))
|
||||||
num_checkpoints += 1
|
num_checkpoints += 1
|
||||||
|
|
||||||
sim_ticks = when
|
sim_ticks = when
|
||||||
|
@ -151,14 +151,14 @@ def run(options, root, testsys):
|
||||||
while exit_event.getCause() == "checkpoint":
|
while exit_event.getCause() == "checkpoint":
|
||||||
exit_event = m5.simulate(sim_ticks - m5.curTick())
|
exit_event = m5.simulate(sim_ticks - m5.curTick())
|
||||||
if exit_event.getCause() == "simulate() limit reached":
|
if exit_event.getCause() == "simulate() limit reached":
|
||||||
m5.checkpoint(root, cptdir + "cpt.%d")
|
m5.checkpoint(root, "/".join([cptdir,"cpt.%d"]))
|
||||||
num_checkpoints += 1
|
num_checkpoints += 1
|
||||||
|
|
||||||
else: #no checkpoints being taken via this script
|
else: #no checkpoints being taken via this script
|
||||||
exit_event = m5.simulate(maxtick)
|
exit_event = m5.simulate(maxtick)
|
||||||
|
|
||||||
while exit_event.getCause() == "checkpoint":
|
while exit_event.getCause() == "checkpoint":
|
||||||
m5.checkpoint(root, cptdir + "cpt.%d")
|
m5.checkpoint(root, "/".join([cptdir,"cpt.%d"]))
|
||||||
num_checkpoints += 1
|
num_checkpoints += 1
|
||||||
if num_checkpoints == max_checkpoints:
|
if num_checkpoints == max_checkpoints:
|
||||||
exit_cause = "maximum %d checkpoints dropped" % max_checkpoints
|
exit_cause = "maximum %d checkpoints dropped" % max_checkpoints
|
||||||
|
|
Loading…
Reference in a new issue