From bda79817c86137a4576b4bc2fe241a67f1740f60 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Fri, 21 Aug 2015 07:03:24 -0400 Subject: [PATCH] mem: Remove unused cache squash functionality Tidying up. --- src/mem/cache/cache.cc | 22 ---------------------- src/mem/cache/cache.hh | 7 ------- 2 files changed, 29 deletions(-) diff --git a/src/mem/cache/cache.cc b/src/mem/cache/cache.cc index 911785479..215fc323a 100644 --- a/src/mem/cache/cache.cc +++ b/src/mem/cache/cache.cc @@ -263,28 +263,6 @@ Cache::markInService(MSHR *mshr, bool pending_dirty_resp) markInServiceInternal(mshr, pending_dirty_resp); } - -void -Cache::squash(int threadNum) -{ - bool unblock = false; - BlockedCause cause = NUM_BLOCKED_CAUSES; - - if (noTargetMSHR && noTargetMSHR->threadNum == threadNum) { - noTargetMSHR = NULL; - unblock = true; - cause = Blocked_NoTargets; - } - if (mshrQueue.isFull()) { - unblock = true; - cause = Blocked_NoMSHRs; - } - mshrQueue.squash(threadNum); - if (unblock && !mshrQueue.isFull()) { - clearBlocked(cause); - } -} - ///////////////////////////////////////////////////// // // Access path: requests coming in from the CPU side diff --git a/src/mem/cache/cache.hh b/src/mem/cache/cache.hh index 447a55229..3d439caa7 100644 --- a/src/mem/cache/cache.hh +++ b/src/mem/cache/cache.hh @@ -342,13 +342,6 @@ class Cache : public BaseCache */ bool invalidateVisitor(CacheBlk &blk); - /** - * Squash all requests associated with specified thread. - * intended for use by I-cache. - * @param threadNum The thread to squash. - */ - void squash(int threadNum); - /** * Generate an appropriate downstream bus request packet for the * given parameters.