summaryrefslogtreecommitdiff
path: root/src/mem/cache/mshr_queue.hh
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2015-02-03 14:25:59 -0500
committerAndreas Hansson <andreas.hansson@arm.com>2015-02-03 14:25:59 -0500
commit193325ff60d11012f4fefb26c2b574b227ad5f1d (patch)
treeb1f4114989279a595f27329c6424ae300b05c82e /src/mem/cache/mshr_queue.hh
parentf0a764edc6dd9c844a1514a005f0695a9149b58a (diff)
downloadgem5-193325ff60d11012f4fefb26c2b574b227ad5f1d.tar.xz
mem: Clarify cache behaviour for pending dirty responses
This patch adds a bit of clarification around the assumptions made in the cache when packets are sent out, and dirty responses are pending. As part of the change, the marking of an MSHR as in service is simplified slightly, and comments are added to explain what assumptions are made.
Diffstat (limited to 'src/mem/cache/mshr_queue.hh')
-rw-r--r--src/mem/cache/mshr_queue.hh7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mem/cache/mshr_queue.hh b/src/mem/cache/mshr_queue.hh
index 7050421fe..1e1218782 100644
--- a/src/mem/cache/mshr_queue.hh
+++ b/src/mem/cache/mshr_queue.hh
@@ -183,10 +183,13 @@ class MSHRQueue : public Drainable
/**
* Mark the given MSHR as in service. This removes the MSHR from the
- * readyList. Deallocates the MSHR if it does not expect a response.
+ * readyList or deallocates the MSHR if it does not expect a response.
+ *
* @param mshr The MSHR to mark in service.
+ * @param pending_dirty_resp Whether we expect a dirty response
+ * from another cache
*/
- void markInService(MSHR *mshr, PacketPtr pkt);
+ void markInService(MSHR *mshr, bool pending_dirty_resp);
/**
* Mark an in service entry as pending, used to resend a request.