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

Change subject: mem: Add Request constructor for special memory command
......................................................................

mem: Add Request constructor for special memory command

The new constructor doesn't require an address nor a
size. We are still setting them as valid as this is
what the memsys is expecting.

Change-Id: Id1b6f1032c1390210a216cd77c7dd0cec14e962f
Signed-off-by: Giacomo Travaglini <giacomo.travagl...@arm.com>
---
M src/mem/request.hh
1 file changed, 27 insertions(+), 1 deletion(-)



diff --git a/src/mem/request.hh b/src/mem/request.hh
index 8b6527c..e3ef5bf 100644
--- a/src/mem/request.hh
+++ b/src/mem/request.hh
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012-2013,2017-2021 Arm Limited
+ * Copyright (c) 2012-2013,2017-2022 Arm Limited
  * All rights reserved
  *
  * The license below extends only to copyright in the software and shall
@@ -492,6 +492,18 @@
         _byteEnable = std::vector<bool>(size, true);
     }

+    /**
+     * Constructor for memory commands requests, with unspecified
+     * addr and size.
+     */
+    Request(Flags flags, RequestorID id) :
+        _requestorId(id), _time(curTick())
+    {
+        _flags.set(flags);
+        privateFlags.set(VALID_PADDR|VALID_SIZE);
+        assert(isTlbiCmd() || isHTMCmd());
+    }
+
     Request(Addr vaddr, unsigned size, Flags flags,
             RequestorID id, Addr pc, ContextID cid,
             AtomicOpFunctorPtr atomic_op=nullptr)

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