mem: Remove unused cache squash functionality
Tidying up.
This commit is contained in:
parent
ddfa96cf45
commit
bda79817c8
2 changed files with 0 additions and 29 deletions
22
src/mem/cache/cache.cc
vendored
22
src/mem/cache/cache.cc
vendored
|
@ -263,28 +263,6 @@ Cache::markInService(MSHR *mshr, bool pending_dirty_resp)
|
||||||
markInServiceInternal(mshr, 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
|
// Access path: requests coming in from the CPU side
|
||||||
|
|
7
src/mem/cache/cache.hh
vendored
7
src/mem/cache/cache.hh
vendored
|
@ -342,13 +342,6 @@ class Cache : public BaseCache
|
||||||
*/
|
*/
|
||||||
bool invalidateVisitor(CacheBlk &blk);
|
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
|
* Generate an appropriate downstream bus request packet for the
|
||||||
* given parameters.
|
* given parameters.
|
||||||
|
|
Loading…
Reference in a new issue