changeset 20ae86ebd4c2 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=20ae86ebd4c2
description:
        config: Add missing CPUs to --restore-with-cpu

        The --restore-with-cpu option didn't use CpuConfig.cpu_names() to
        determine which CPU names are valid, instead it used a static list of
        known CPU names. This changeset makes the option parsing code use the
        CPU list from the CpuConfig module instead.

diffstat:

 configs/common/Options.py |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (13 lines):

diff -r fb040456eb46 -r 20ae86ebd4c2 configs/common/Options.py
--- a/configs/common/Options.py Mon Jun 03 13:39:11 2013 +0200
+++ b/configs/common/Options.py Mon Jun 03 13:40:05 2013 +0200
@@ -136,8 +136,7 @@
     parser.add_option("--work-cpus-checkpoint-count", action="store", 
type="int",
                       help="checkpoint and exit when active cpu count is 
reached")
     parser.add_option("--restore-with-cpu", action="store", type="choice",
-                      default="atomic", choices = ["atomic", "timing",
-                                                   "detailed", "inorder"],
+                      default="atomic", choices=CpuConfig.cpu_names(),
                       help = "cpu type for restoring from a checkpoint")
 
 
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to