mem: Remove unused cache squash functionality
authorAndreas Hansson <andreas.hansson@arm.com>
Fri, 21 Aug 2015 11:03:24 +0000 (07:03 -0400)
committerAndreas Hansson <andreas.hansson@arm.com>
Fri, 21 Aug 2015 11:03:24 +0000 (07:03 -0400)
Tidying up.

src/mem/cache/cache.cc
src/mem/cache/cache.hh

index 91178547953f1bf1c84a6cc37fae285b5a52c501..215fc323a80bb0b4fc35c69dc98694e928c6cea4 100644 (file)
@@ -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
index 447a552294a00b6f5f5785e764952aa4508d3449..3d439caa77d0f50bfa5b20e55ed50d8220d31491 100644 (file)
@@ -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.