tests, scons: Fix Testlib test failures
This commit changes the fs/linux/arm and learning_gem5 tests as they were previously failing with the Ruby change. The fs/linux/arm long tests require the addition of a new gem5 build, ARM_X86, which builds the ARM and X86 ISAs with the MESI_Two_Level cache hierarchy.
This commit is contained in:
6
build_opts/ARM_X86
Normal file
6
build_opts/ARM_X86
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
BUILD_ISA=y
|
||||||
|
USE_ARM_ISA=y
|
||||||
|
USE_X86_ISA=y
|
||||||
|
RUBY=y
|
||||||
|
PROTOCOL="MESI_Two_Level"
|
||||||
|
RUBY_PROTOCOL_MESI_Two_Level=y
|
||||||
@@ -47,7 +47,7 @@ from m5.util import fatal
|
|||||||
|
|
||||||
class TestCacheSystem(RubySystem):
|
class TestCacheSystem(RubySystem):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
if buildEnv["PROTOCOL"] != "MSI":
|
if not "RUBY_PROTOCOL_MSI" in buildEnv:
|
||||||
fatal("This system assumes MSI from learning gem5!")
|
fatal("This system assumes MSI from learning gem5!")
|
||||||
|
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|||||||
@@ -255,6 +255,9 @@ def define_constants(constants):
|
|||||||
constants.all_compiled_tag = "ALL"
|
constants.all_compiled_tag = "ALL"
|
||||||
constants.null_all_ruby = "NULL_All_Ruby"
|
constants.null_all_ruby = "NULL_All_Ruby"
|
||||||
|
|
||||||
|
# Need this build in order to run the fs/linux/arm testlib tests.
|
||||||
|
constants.arm_x86_tag = "ARM_X86"
|
||||||
|
|
||||||
constants.variant_tag_type = "variant"
|
constants.variant_tag_type = "variant"
|
||||||
constants.opt_tag = "opt"
|
constants.opt_tag = "opt"
|
||||||
constants.debug_tag = "debug"
|
constants.debug_tag = "debug"
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ for name in arm_fs_long_tests:
|
|||||||
verifiers=verifier_list(name), # TODO: Add basic stat verifiers
|
verifiers=verifier_list(name), # TODO: Add basic stat verifiers
|
||||||
config=joinpath(filepath, "run.py"),
|
config=joinpath(filepath, "run.py"),
|
||||||
config_args=args,
|
config_args=args,
|
||||||
valid_isas=(constants.all_compiled_tag,),
|
valid_isas=(constants.arm_x86_tag,),
|
||||||
length=constants.long_tag,
|
length=constants.long_tag,
|
||||||
fixtures=(arm_fs_binaries,),
|
fixtures=(arm_fs_binaries,),
|
||||||
uses_kvm=name in arm_fs_kvm_tests,
|
uses_kvm=name in arm_fs_kvm_tests,
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ gem5_verify_config(
|
|||||||
verifiers=(verifier.MatchStdoutNoPerf(joinpath(ref_path, "threads")),),
|
verifiers=(verifier.MatchStdoutNoPerf(joinpath(ref_path, "threads")),),
|
||||||
config=joinpath(config_path, "simple_ruby.py"),
|
config=joinpath(config_path, "simple_ruby.py"),
|
||||||
config_args=[],
|
config_args=[],
|
||||||
protocol="MSI",
|
|
||||||
# Currently only x86 has the threads test
|
# Currently only x86 has the threads test
|
||||||
valid_isas=(constants.all_compiled_tag,),
|
valid_isas=(constants.all_compiled_tag,),
|
||||||
# dynamically linked
|
# dynamically linked
|
||||||
@@ -51,7 +50,6 @@ gem5_verify_config(
|
|||||||
verifiers=(verifier.MatchStdout(joinpath(ref_path, "test")),),
|
verifiers=(verifier.MatchStdout(joinpath(ref_path, "test")),),
|
||||||
config=joinpath(config_path, "ruby_test.py"),
|
config=joinpath(config_path, "ruby_test.py"),
|
||||||
config_args=[],
|
config_args=[],
|
||||||
protocol="MSI",
|
|
||||||
# Currently only x86 has the threads test
|
# Currently only x86 has the threads test
|
||||||
valid_isas=(constants.all_compiled_tag,),
|
valid_isas=(constants.all_compiled_tag,),
|
||||||
length=constants.long_tag,
|
length=constants.long_tag,
|
||||||
|
|||||||
Reference in New Issue
Block a user