Jordi Vaquero has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/37415 )

Change subject: mem: Added a new atribute for Address based mem barrier
......................................................................

mem: Added a new atribute for Address based mem barrier

This small patch adds a new attribute and the set/get functions
to implement an address based mem barrier. The details of its use an
implementation are architecture dependent and it is described in
child-commits.

Change-Id: I2bf95b0b9ba848e35b58e545db311b8f09cb9cc7
---
M src/mem/request.hh
1 file changed, 15 insertions(+), 0 deletions(-)



diff --git a/src/mem/request.hh b/src/mem/request.hh
index 73c823b..2898a33 100644
--- a/src/mem/request.hh
+++ b/src/mem/request.hh
@@ -407,6 +407,9 @@

     LocalAccessor _localAccessor;

+    /** Extra data used for ARM LOR subsistem to identify memory region **/
+    int orderIndex = 0;
+
     /** The instruction count at the time this request is created */
     Counter _instCount = 0;

@@ -860,6 +863,18 @@
void setAccessLatency() { accessDelta = curTick() - _time - translateDelta; }
     Tick getAccessLatency() const { return accessDelta; }

+    void
+    setOrderingIndex(int idx)
+    {
+        orderIndex = idx;
+    }
+
+    int
+    getOrderingIndex()
+    {
+        return orderIndex;
+    }
+
     /**
      * Accessor for the sequence number of instruction that creates the
      * request.

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/37415
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: I2bf95b0b9ba848e35b58e545db311b8f09cb9cc7
Gerrit-Change-Number: 37415
Gerrit-PatchSet: 1
Gerrit-Owner: Jordi Vaquero <jordi.vaqu...@metempsy.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