Giacomo Travaglini has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/56599 )

Change subject: cpu: Allow TLB shootdown requests in the timing cpu
......................................................................

cpu: Allow TLB shootdown requests in the timing cpu

JIRA: https://gem5.atlassian.net/browse/GEM5-1097

Change-Id: Ied38e9ed1f02d8e48bc5d62cc34baaec740bf6b8
Signed-off-by: Giacomo Travaglini <giacomo.travagl...@arm.com>
---
M src/cpu/simple/timing.cc
1 file changed, 26 insertions(+), 9 deletions(-)



diff --git a/src/cpu/simple/timing.cc b/src/cpu/simple/timing.cc
index d791e3f..9e29cde 100644
--- a/src/cpu/simple/timing.cc
+++ b/src/cpu/simple/timing.cc
@@ -1236,7 +1236,7 @@
     req->taskId(taskId());
     req->setInstCount(t_info.numInst);

-    assert(req->isHTMCmd());
+    assert(req->isHTMCmd() || req->isTlbiCmd());

     // Use the payload as a sanity check,
     // the memory subsystem will clear allocated data
@@ -1246,14 +1246,19 @@
     memcpy (data, &rc, size);

     // debugging output
-    if (req->isHTMStart())
- DPRINTF(HtmCpu, "HTMstart htmUid=%u\n", t_info.getHtmTransactionUid());
-    else if (req->isHTMCommit())
- DPRINTF(HtmCpu, "HTMcommit htmUid=%u\n", t_info.getHtmTransactionUid());
-    else if (req->isHTMCancel())
- DPRINTF(HtmCpu, "HTMcancel htmUid=%u\n", t_info.getHtmTransactionUid());
-    else
-        panic("initiateHtmCmd: unknown CMD");
+    if (req->isHTMCmd()) {
+        if (req->isHTMStart())
+            DPRINTF(HtmCpu, "HTMstart htmUid=%u\n",
+                t_info.getHtmTransactionUid());
+        else if (req->isHTMCommit())
+            DPRINTF(HtmCpu, "HTMcommit htmUid=%u\n",
+                t_info.getHtmTransactionUid());
+        else if (req->isHTMCancel())
+            DPRINTF(HtmCpu, "HTMcancel htmUid=%u\n",
+                t_info.getHtmTransactionUid());
+        else
+            panic("initiateSpecialMemCmd: unknown HTM CMD");
+    }

     sendData(req, data, nullptr, true);


--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/56599
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: Ied38e9ed1f02d8e48bc5d62cc34baaec740bf6b8
Gerrit-Change-Number: 56599
Gerrit-PatchSet: 1
Gerrit-Owner: Giacomo Travaglini <giacomo.travagl...@arm.com>
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