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

Change subject: tests: Add MinorCPU tests to Hello World tests
......................................................................

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
---
M tests/gem5/configs/simple_binary_run.py
M tests/gem5/hello_se/test_hello_se.py
2 files changed, 17 insertions(+), 3 deletions(-)



diff --git a/tests/gem5/configs/simple_binary_run.py b/tests/gem5/configs/simple_binary_run.py
index 51553df..7336865 100644
--- a/tests/gem5/configs/simple_binary_run.py
+++ b/tests/gem5/configs/simple_binary_run.py
@@ -55,7 +55,7 @@
 parser.add_argument(
     "cpu",
     type=str,
-    choices=("kvm", "timing", "atomic", "o3"),
+    choices=("kvm", "timing", "atomic", "o3", "minor"),
     help="The CPU type used.",
 )

@@ -103,6 +103,8 @@
         return CPUTypes.ATOMIC
     elif input == "o3":
         return CPUTypes.O3
+    elif input == "minor":
+        return CPUTypes.MINOR
     else:
         raise NotADirectoryError("Unknown CPU type '{}'.".format(input))

diff --git a/tests/gem5/hello_se/test_hello_se.py b/tests/gem5/hello_se/test_hello_se.py
index 115b396..e1e6aaf 100644
--- a/tests/gem5/hello_se/test_hello_se.py
+++ b/tests/gem5/hello_se/test_hello_se.py
@@ -72,9 +72,9 @@

 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"),
 }


--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/57690
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: I7cbcd2ee8cae470a3de0d59af20dc2fd911fb2bd
Gerrit-Change-Number: 57690
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