diff options
author | Andreas Sandberg <andreas.sandberg@arm.com> | 2017-03-20 10:44:07 +0000 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2017-04-03 16:37:55 +0000 |
commit | 3547af6e449c4bc0797c1c333bdce9c1c3ee2b66 (patch) | |
tree | 9a95f24632d0556bb0fa8a946a0ec53b03cf1168 /configs/example/arm/dist_bigLITTLE.py | |
parent | 66a1016a3548e244f4d96773bfa8985262e4d4b4 (diff) | |
download | gem5-3547af6e449c4bc0797c1c333bdce9c1c3ee2b66.tar.xz |
config, arm: Unify checkpoint path handling in bL configs
The vanilla bL configuration file and the dist-gem5 configuration file
use slightly different code paths when restoring from
checkpoints. Unify this by passing the parsed options to the
instantiate() method and adding an optional checkpoint keyword
argument for checkpoint directories (only used by the dist-gem5
script).
Change-Id: I9943ec10bd7a256465e29c8de571142ec3fbaa0e
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Curtis Dunham <curtis.dunham@arm.com>
Reviewed-by: Sascha Bischoff <sascha.bischoff@arm.com>
Reviewed-by: Gabor Dozsa <gabor.dozsa@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/2560
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Weiping Liao <weipingliao@google.com>
Diffstat (limited to 'configs/example/arm/dist_bigLITTLE.py')
-rw-r--r-- | configs/example/arm/dist_bigLITTLE.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/configs/example/arm/dist_bigLITTLE.py b/configs/example/arm/dist_bigLITTLE.py index 13b8abf5f..5194fc7e6 100644 --- a/configs/example/arm/dist_bigLITTLE.py +++ b/configs/example/arm/dist_bigLITTLE.py @@ -1,4 +1,4 @@ -# Copyright (c) 2016 ARM Limited +# Copyright (c) 2016-2017 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall @@ -132,12 +132,7 @@ def main(): root = bL.build(options) addEthernet(root.system, options) - if options.restore_from: - checkpoint_path = os.path.join(options.checkpoint_dir, - options.restore_from) - else: - checkpoint_path = None - bL.instantiate(checkpoint_path) + bL.instantiate(options, checkpoint_dir=options.checkpoint_dir) bL.run(options.checkpoint_dir) |