This argument lets the user restore a checkpoint after loading
simulator state from config.ini.
Change-Id: I6e0630d75b798a1d2536e2408660843f57f46c4b
Reviewed-on: https://gem5-review.googlesource.com/6941
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
parser.add_argument('config_file', metavar='config-file.ini',
help='.ini configuration file to load and run')
+parser.add_argument('--checkpoint-dir', type=str, default=None,
+ help='A checkpoint to directory to restore when starting '
+ 'the simulation')
args = parser.parse_args(sys.argv[1:])
mgr.find_all_objects()
-m5.instantiate()
+m5.instantiate(args.checkpoint_dir)
exit_event = m5.simulate()
print 'Exiting @ tick %i because %s' % (