Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/6941
Change subject: config: Add a --checkpoint-dir argument to read_config.py.
......................................................................
config: Add a --checkpoint-dir argument to read_config.py.
This argument lets the user restore a checkpoint after loading
simulator state from config.ini.
Change-Id: I6e0630d75b798a1d2536e2408660843f57f46c4b
---
M configs/example/read_config.py
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/configs/example/read_config.py b/configs/example/read_config.py
index dfd5b7f..830bdb8 100644
--- a/configs/example/read_config.py
+++ b/configs/example/read_config.py
@@ -510,6 +510,9 @@
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:])
@@ -526,7 +529,7 @@
mgr.find_all_objects()
-m5.instantiate()
+m5.instantiate(args.checkpoint_dir)
exit_event = m5.simulate()
print 'Exiting @ tick %i because %s' % (
--
To view, visit https://gem5-review.googlesource.com/6941
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6e0630d75b798a1d2536e2408660843f57f46c4b
Gerrit-Change-Number: 6941
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev