111,114c111
< def main():
< parser = argparse.ArgumentParser(
< description="Generic ARM big.LITTLE configuration")
<
---
> def addOptions(parser):
140a138
> return parser
141a140,141
>
> def build(options):
144,145d143
< options = parser.parse_args()
<
210a209,212
> return root
>
>
> def instantiate(checkpoint_path=None):
212,213c214,216
< if options.restore_from is not None:
< m5.instantiate(options.restore_from)
---
> if checkpoint_path is not None:
> m5.util.inform("Restoring from checkpoint %s", checkpoint_path)
> m5.instantiate(checkpoint_path)
216a220,221
>
> def run(checkpoint_dir=m5.options.outdir):
223,224c228,229
< cpt_dir = os.path.join(m5.options.outdir, "cpt.%d" % m5.curTick())
< m5.checkpoint(os.path.join(cpt_dir))
---
> cpt_dir = os.path.join(checkpoint_dir, "cpt.%d" % m5.curTick())
> m5.checkpoint(cpt_dir)
232a238,247
> def main():
> parser = argparse.ArgumentParser(
> description="Generic ARM big.LITTLE configuration")
> addOptions(parser)
> options = parser.parse_args()
> root = build(options)
> instantiate(options.restore_from)
> run()
>
>