summaryrefslogtreecommitdiff
path: root/src/mem/cache/write_queue_entry.cc
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2016-04-21 04:48:07 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2016-04-21 04:48:07 -0400
commit13b9d4215dd0b5154f8f27fc6867a07c648a1af9 (patch)
treea47c957482b797e2bfda17b015bc8c7d832b9006 /src/mem/cache/write_queue_entry.cc
parent6c92ee49f1125559ffc7c20cfe96306b9c4de017 (diff)
downloadgem5-13b9d4215dd0b5154f8f27fc6867a07c648a1af9.tar.xz
mem: Deallocate all write-queue entries when sent
This patch removes the write-queue entry tracking previously used for uncacheable writes. The write-queue entry is now deallocated as soon as the packet is sent. As a result we also forego the stats for uncacheable writes. Additionally, there is no longer a need to attach the write-queue entry to the packet.
Diffstat (limited to 'src/mem/cache/write_queue_entry.cc')
-rw-r--r--src/mem/cache/write_queue_entry.cc17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/mem/cache/write_queue_entry.cc b/src/mem/cache/write_queue_entry.cc
index c55aba9c8..e54fed7a4 100644
--- a/src/mem/cache/write_queue_entry.cc
+++ b/src/mem/cache/write_queue_entry.cc
@@ -118,23 +118,6 @@ WriteQueueEntry::allocate(Addr blk_addr, unsigned blk_size, PacketPtr target,
targets.add(target, when_ready, _order);
}
-bool
-WriteQueueEntry::markInService()
-{
- assert(!inService);
- if (!isUncacheable()) {
- // we just forwarded the request packet & don't expect a
- // response, so get rid of it
- assert(getNumTargets() == 1);
- popTarget();
- return true;
- }
-
- inService = true;
-
- return false;
-}
-
void
WriteQueueEntry::deallocate()
{