tests: Add MinorCPU tests to the RISCV Boot tests

Change-Id: I9bd6665af00ea8a348152b5f5f83ff1017da4c7a
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/57691
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Bobby R. Bruce
2022-03-15 13:33:56 -07:00
committed by Bobby Bruce
parent bfb0353541
commit 4f4c8b5eda
2 changed files with 41 additions and 1 deletions

View File

@@ -60,7 +60,7 @@ parser.add_argument(
"-c",
"--cpu",
type=str,
choices=("kvm", "atomic", "timing", "o3"),
choices=("kvm", "atomic", "timing", "o3", "minor"),
required=True,
help="The CPU type.",
)
@@ -139,6 +139,8 @@ elif args.cpu == "timing":
cpu_type = CPUTypes.TIMING
elif args.cpu == "o3":
cpu_type = CPUTypes.O3
elif args.cpu == "minor":
cpu_type = CPUTypes.MINOR
else:
raise NotImplementedError(
"CPU type '{}' is not supported in the boot tests.".format(args.cpu)

View File

@@ -111,6 +111,44 @@ test_boot(
to_tick=10000000000,
)
test_boot(
cpu="minor",
num_cpus=1,
cache_type="classic",
memory_class="SingleChannelDDR3_2133",
length=constants.quick_tag,
to_tick=10000000000,
)
test_boot(
cpu="minor",
num_cpus=4,
cache_type="classic",
memory_class="SingleChannelDDR3_2133",
length=constants.quick_tag,
to_tick=10000000000,
)
test_boot(
cpu="minor",
num_cpus=1,
cache_type="mi_example",
memory_class="SingleChannelDDR3_2133",
length=constants.quick_tag,
to_tick=10000000000,
)
test_boot(
cpu="minor",
num_cpus=8,
cache_type="mi_example",
memory_class="SingleChannelDDR3_2133",
length=constants.quick_tag,
to_tick=10000000000,
)
test_boot(
cpu="timing",
num_cpus=1,