Bobby Bruce has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/57691 )

Change subject: tests: Add MinorCPU tests to the RISCV Boot tests
......................................................................

tests: Add MinorCPU tests to the RISCV Boot tests

Change-Id: I9bd6665af00ea8a348152b5f5f83ff1017da4c7a
---
M tests/gem5/configs/riscv_boot_exit_run.py
M tests/gem5/riscv-boot-tests/test_linux_boot.py
2 files changed, 50 insertions(+), 1 deletion(-)



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: 1
Gerrit-Owner: Bobby Bruce <bbr...@ucdavis.edu>
Gerrit-MessageType: newchange
_______________________________________________
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

Reply via email to