configs: restore_simpoint_checkpoint should be a boolean
The --restore_simpoint_checkpoint option is a boolean; however if no default value is supplied, optparse sets the default value to None This is not valid for argparse. Argparse recognizes the store_true action and it is automatically treating the option as a boolean, hence providing a default=False instead of default=None Change-Id: I6b09edf6911be71a06001730be1232a1b5c8482c Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/44765 Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br> Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -710,7 +710,7 @@ def run(options, root, testsys, cpu_class):
|
||||
takeSimpointCheckpoints(simpoints, interval_length, cptdir)
|
||||
|
||||
# Restore from SimPoint checkpoints
|
||||
elif options.restore_simpoint_checkpoint != None:
|
||||
elif options.restore_simpoint_checkpoint:
|
||||
restoreSimpointCheckpoint()
|
||||
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user