Bobby Bruce has submitted this change. (
https://gem5-review.googlesource.com/c/public/gem5/+/57691 )
(
1 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the
submitted one.
)Change subject: tests: Add MinorCPU tests to the RISCV Boot tests
......................................................................
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...@gmail.com>
Maintainer: Jason Lowe-Power <power...@gmail.com>
Tested-by: kokoro <noreply+kok...@google.com>
---
M tests/gem5/configs/riscv_boot_exit_run.py
M tests/gem5/riscv-boot-tests/test_linux_boot.py
2 files changed, 54 insertions(+), 1 deletion(-)
Approvals:
Jason Lowe-Power: Looks good to me, approved; Looks good to me, approved
kokoro: Regressions pass
diff --git a/tests/gem5/configs/riscv_boot_exit_run.py
b/tests/gem5/configs/riscv_boot_exit_run.py
index a06a45b..fd57e45 100644
--- a/tests/gem5/configs/riscv_boot_exit_run.py
+++ b/tests/gem5/configs/riscv_boot_exit_run.py
@@ -60,7 +60,7 @@
"-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 @@
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)
diff --git a/tests/gem5/riscv-boot-tests/test_linux_boot.py
b/tests/gem5/riscv-boot-tests/test_linux_boot.py
index 6d4e9f1..e39c409 100644
--- a/tests/gem5/riscv-boot-tests/test_linux_boot.py
+++ b/tests/gem5/riscv-boot-tests/test_linux_boot.py
@@ -112,6 +112,44 @@
)
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,
cache_type="mi_example",
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/57691
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I9bd6665af00ea8a348152b5f5f83ff1017da4c7a
Gerrit-Change-Number: 57691
Gerrit-PatchSet: 3
Gerrit-Owner: Bobby Bruce <bbr...@ucdavis.edu>
Gerrit-Reviewer: Bobby Bruce <bbr...@ucdavis.edu>
Gerrit-Reviewer: Hoa Nguyen <hoangu...@ucdavis.edu>
Gerrit-Reviewer: Jason Lowe-Power <ja...@lowepower.com>
Gerrit-Reviewer: Jason Lowe-Power <power...@gmail.com>
Gerrit-Reviewer: Mahyar Samani <msam...@ucdavis.edu>
Gerrit-Reviewer: kokoro <noreply+kok...@google.com>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s