tests: Add MinorCPU tests to Hello World tests

At present, only the ARM and RISCV gem5 binaries support the MinorCPU by
default. Therefore, that is all that is tested for now.

Change-Id: I7cbcd2ee8cae470a3de0d59af20dc2fd911fb2bd
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/57690
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:17:21 -07:00
committed by Bobby Bruce
parent 1876e782ee
commit bfb0353541
2 changed files with 5 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ parser.add_argument(
parser.add_argument(
"cpu",
type=str,
choices=("kvm", "timing", "atomic", "o3"),
choices=("kvm", "timing", "atomic", "o3", "minor"),
help="The CPU type used.",
)
@@ -84,6 +84,8 @@ def input_to_cputype(input: str) -> CPUTypes:
return CPUTypes.ATOMIC
elif input == "o3":
return CPUTypes.O3
elif input == "minor":
return CPUTypes.MINOR
else:
raise NotADirectoryError("Unknown CPU type '{}'.".format(input))

View File

@@ -72,9 +72,9 @@ dynamic_progs = {constants.gcn3_x86_tag: ("x86-hello64-dynamic",)}
cpu_types = {
constants.gcn3_x86_tag: ("timing", "atomic", "o3"),
constants.arm_tag: ("timing", "atomic", "o3"),
constants.arm_tag: ("timing", "atomic", "o3", "minor"),
constants.mips_tag: ("timing", "atomic", "o3"),
constants.riscv_tag: ("timing", "atomic", "o3"),
constants.riscv_tag: ("timing", "atomic", "o3", "minor"),
constants.sparc_tag: ("timing", "atomic"),
}