Giacomo Travaglini has submitted this change. ( https://gem5-review.googlesource.com/c/public/gem5/+/53626 )

Change subject: ext: Make gem5-SST support CMOs
......................................................................

ext: Make gem5-SST support CMOs

Change-Id: I45047702018512dfef5a93a633871821f3c69820
Signed-off-by: Giacomo Travaglini <[email protected]>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/53626
Maintainer: Bobby Bruce <[email protected]>
Reviewed-by: Hoa Nguyen <[email protected]>
Reviewed-by: Jason Lowe-Power <[email protected]>
Tested-by: kokoro <[email protected]>
---
M ext/sst/translator.hh
1 file changed, 24 insertions(+), 1 deletion(-)

Approvals:
  Jason Lowe-Power: Looks good to me, approved
  Hoa Nguyen: Looks good to me, but someone else must approve
  Bobby Bruce: Looks good to me, approved
  kokoro: Regressions pass




diff --git a/ext/sst/translator.hh b/ext/sst/translator.hh
index a2faebb..2d8c8b7 100644
--- a/ext/sst/translator.hh
+++ b/ext/sst/translator.hh
@@ -48,6 +48,7 @@
     switch ((gem5::MemCmd::Command)pkt->cmd.toInt()) {
         case gem5::MemCmd::HardPFReq:
         case gem5::MemCmd::SoftPFReq:
+        case gem5::MemCmd::SoftPFExReq:
         case gem5::MemCmd::LoadLockedReq:
         case gem5::MemCmd::ReadExReq:
         case gem5::MemCmd::ReadReq:
@@ -58,8 +59,15 @@
         case gem5::MemCmd::WriteReq:
             cmd = SST::Interfaces::SimpleMem::Request::Command::Write;
             break;
+        case gem5::MemCmd::CleanInvalidReq:
+        case gem5::MemCmd::InvalidateReq:
+ cmd = SST::Interfaces::SimpleMem::Request::Command::FlushLineInv;
+            break;
+        case gem5::MemCmd::CleanSharedReq:
+            cmd = SST::Interfaces::SimpleMem::Request::Command::FlushLine;
+            break;
         default:
-            assert(false && "Unable to convert gem5 packet");
+ panic("Unable to convert gem5 packet: %s\n", pkt->cmd.toString());
     }

     SST::Interfaces::SimpleMem::Addr addr = pkt->getAddr();

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/53626
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: I45047702018512dfef5a93a633871821f3c69820
Gerrit-Change-Number: 53626
Gerrit-PatchSet: 3
Gerrit-Owner: Giacomo Travaglini <[email protected]>
Gerrit-Reviewer: Bobby Bruce <[email protected]>
Gerrit-Reviewer: Giacomo Travaglini <[email protected]>
Gerrit-Reviewer: Hoa Nguyen <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: kokoro <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to