configs: Fix issues after get_runtime_isa() #241 removed (#652)

1. Fix the wrong ISA detect of get_isa function
2. Fix the typo ObjectLIst.cpu_list
3. Fix missing PageTableWalkerCache
4. Fix the invalid default cpu_type paramter

Change-Id: I217ea8da8a6d8e712743a5b32c4c0669216ce6c4
This commit is contained in:
Yu-Cheng Chang
2023-12-07 02:57:18 +08:00
committed by GitHub
parent f00d7f70a4
commit 9bd61f217f
10 changed files with 46 additions and 31 deletions

View File

@@ -38,7 +38,10 @@
import argparse
from common import ObjectList
from common import (
CpuConfig,
ObjectList,
)
from common.Benchmarks import *
import m5
@@ -242,6 +245,7 @@ def addNoISAOptions(parser):
def addCommonOptions(parser):
# start by adding the base options that do not assume an ISA
addNoISAOptions(parser)
isa = list(get_supported_isas())[0]
# system options
parser.add_argument(
@@ -252,7 +256,7 @@ def addCommonOptions(parser):
)
parser.add_argument(
"--cpu-type",
default=list(get_supported_isas())[0].name + "AtomicSimpleCPU",
default=CpuConfig.isa_string_map[isa] + "AtomicSimpleCPU",
choices=ObjectList.cpu_list.get_names(),
help="type of cpu to run with",
)
@@ -583,7 +587,7 @@ def addCommonOptions(parser):
parser.add_argument(
"--restore-with-cpu",
action="store",
default="AtomicSimpleCPU",
default=CpuConfig.isa_string_map[isa] + "AtomicSimpleCPU",
choices=ObjectList.cpu_list.get_names(),
help="cpu type for restoring from a checkpoint",
)