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:
committed by
Bobby Bruce
parent
35362d15f5
commit
331be22adb
@@ -1,3 +1,4 @@
|
||||
TARGET_ISA = 'x86'
|
||||
CPU_MODELS = 'AtomicSimpleCPU,O3CPU,TimingSimpleCPU'
|
||||
PROTOCOL = 'MI_example'
|
||||
CPU_MODELS = 'TimingSimpleCPU,O3CPU,AtomicSimpleCPU'
|
||||
PROTOCOL = 'MESI_Two_Level'
|
||||
NUMBER_BITS_PER_SET = '128'
|
||||
3
build_opts/X86_MI_example
Normal file
3
build_opts/X86_MI_example
Normal file
@@ -0,0 +1,3 @@
|
||||
TARGET_ISA = 'x86'
|
||||
CPU_MODELS = 'TimingSimpleCPU,O3CPU,AtomicSimpleCPU'
|
||||
PROTOCOL = 'MI_example
|
||||
@@ -35,9 +35,8 @@ Usage
|
||||
-----
|
||||
|
||||
```
|
||||
scons build/X86_MESI_Two_Level/gem5.opt
|
||||
./build/X86_MESI_Two_Level/gem5.opt \
|
||||
configs/example/gem5_library/x86-ubuntu-run.py
|
||||
scons build/X86/gem5.opt
|
||||
./build/X86/gem5.opt configs/example/gem5_library/x86-ubuntu-run.py
|
||||
```
|
||||
"""
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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,
|
||||
)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user