mem-cache: Create an address aware TempCacheBlk
[gem5.git] / src / mem / coherent_xbar.hh
index 0c2907fa0f4e26d541ae2b438cf9680f82b6cc54..79777b99879efdb130d04bd592f5aeb4d642317e 100644 (file)
@@ -51,6 +51,7 @@
 #ifndef __MEM_COHERENT_XBAR_HH__
 #define __MEM_COHERENT_XBAR_HH__
 
+#include <unordered_map>
 #include <unordered_set>
 
 #include "mem/snoop_filter.hh"
@@ -262,6 +263,13 @@ class CoherentXBar : public BaseXBar
      */
     std::unordered_set<RequestPtr> outstandingSnoop;
 
+    /**
+     * Store the outstanding cache maintenance that we are expecting
+     * snoop responses from so we can determine when we received all
+     * snoop responses and if any of the agents satisfied the request.
+     */
+    std::unordered_map<PacketId, PacketPtr> outstandingCMO;
+
     /**
      * Keep a pointer to the system to be allow to querying memory system
      * properties.