scons,misc: Update default X86 protocol to MESI_Two_Level

MI_Example is a particularly poor protocol as the default for X86.
MESI_Two_Level is a suitable replacement.

The primary reason for this change is so the vanilla X86 build can run
the X86DemoBoard, submitted here:
https://gem5-review.googlesource.com/c/public/gem5/+/53004

Change-Id: I46212f795684bd1f2ce285c69ffcad2f148ab328
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/53503
Maintainer: Bobby Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Bobby Bruce <bbruce@ucdavis.edu>
This commit is contained in:
Bobby R. Bruce
2021-11-30 15:39:36 -08:00
committed by Bobby Bruce
parent 35362d15f5
commit 331be22adb
9 changed files with 15 additions and 20 deletions

View File

@@ -50,7 +50,7 @@ builds=("ARM"
"RISCV"
"SPARC"
"X86"
"X86_MESI_Two_Level"
"X86_MI_example"
"X86_MOESI_AMD_Base")
# The optimizations to use for each build target.

View File

@@ -68,7 +68,6 @@ if os.access("/dev/kvm", mode=os.R_OK | os.W_OK):
),
config_args=[],
valid_isas=(constants.x86_tag,),
protocol="MESI_Two_Level",
valid_hosts=constants.supported_hosts,
length=constants.long_tag,
)

View File

@@ -52,10 +52,10 @@ def test_kvm_fork_run(cpu: str, num_cpus: int, mem_system: str, length: str):
verifiers = []
if mem_system == "mesi_two_level":
protocol_to_use = "MESI_Two_Level"
protocol_to_use = None
isa_to_use = constants.x86_tag
elif mem_system == "mi_example":
protocol_to_use = None
protocol_to_use = "MI_example"
isa_to_use = constants.x86_tag
else:
protocol_to_use = None

View File

@@ -52,10 +52,10 @@ def test_kvm_switch(cpu: str, num_cpus: int, mem_system: str, length: str):
verifiers = []
if mem_system == "mesi_two_level":
protocol_to_use = "MESI_Two_Level"
protocol_to_use = None
isa_to_use = constants.x86_tag
elif mem_system == "mi_example":
protocol_to_use = None
protocol_to_use = "MI_example"
isa_to_use = constants.x86_tag
else:
protocol_to_use = None

View File

@@ -50,12 +50,6 @@ def test_parsec(
# Don't run the tests if KVM is unavailable.
return
if mem_system == "mesi_two_level":
protocol_to_use="MESI_Two_Level"
else:
protocol_to_use=None
gem5_verify_config(
name="{}-boot-cpu_{}-detailed-cpu_{}-cores_{}_{}_{}_parsec-test"\
.format(
@@ -93,7 +87,6 @@ def test_parsec(
],
valid_isas=(constants.x86_tag,),
valid_hosts=constants.supported_hosts,
protocol=protocol_to_use,
length=length,
)

View File

@@ -62,10 +62,10 @@ def test_boot(
additional_config_args.append(str(to_tick))
if mem_system == "mesi_two_level":
protocol_to_use="MESI_Two_Level"
protocol_to_use = None
isa_to_use=constants.x86_tag
elif mem_system == "mi_example":
protocol_to_use=None
protocol_to_use = "MI_example"
isa_to_use=constants.x86_tag
else:
protocol_to_use=None