arm, mem: Remove unused CLEAR_LL request flag
Cleaning up dead code. The CLREX stores zero directly to MISCREG_LOCKFLAG and so the request flag is no longer needed. The corresponding functionality in the cache tags is also removed.
This commit is contained in:
3
src/mem/cache/cache.cc
vendored
3
src/mem/cache/cache.cc
vendored
@@ -288,9 +288,6 @@ Cache::access(PacketPtr pkt, CacheBlk *&blk, Cycles &lat,
|
||||
pkt->req->isInstFetch() ? " (ifetch)" : "",
|
||||
pkt->getAddr());
|
||||
|
||||
if (pkt->req->isClearLL())
|
||||
tags->clearLocks();
|
||||
|
||||
// flush and invalidate any existing block
|
||||
CacheBlk *old_blk(tags->findBlock(pkt->getAddr(), pkt->isSecure()));
|
||||
if (old_blk && old_blk->isValid()) {
|
||||
|
||||
6
src/mem/cache/tags/base.hh
vendored
6
src/mem/cache/tags/base.hh
vendored
@@ -170,12 +170,6 @@ class BaseTags : public ClockedObject
|
||||
*/
|
||||
virtual void computeStats() {}
|
||||
|
||||
/**
|
||||
*iterated through all blocks and clear all locks
|
||||
*Needed to clear all lock tracking at once
|
||||
*/
|
||||
virtual void clearLocks() {}
|
||||
|
||||
/**
|
||||
* Print all tags used
|
||||
*/
|
||||
|
||||
8
src/mem/cache/tags/base_set_assoc.cc
vendored
8
src/mem/cache/tags/base_set_assoc.cc
vendored
@@ -135,14 +135,6 @@ BaseSetAssoc::findBlockBySetAndWay(int set, int way) const
|
||||
return sets[set].blks[way];
|
||||
}
|
||||
|
||||
void
|
||||
BaseSetAssoc::clearLocks()
|
||||
{
|
||||
for (int i = 0; i < numBlocks; i++){
|
||||
blks[i].clearLoadLocks();
|
||||
}
|
||||
}
|
||||
|
||||
std::string
|
||||
BaseSetAssoc::print() const {
|
||||
std::string cache_state;
|
||||
|
||||
6
src/mem/cache/tags/base_set_assoc.hh
vendored
6
src/mem/cache/tags/base_set_assoc.hh
vendored
@@ -380,12 +380,6 @@ public:
|
||||
return ((tag << tagShift) | ((Addr)set << setShift));
|
||||
}
|
||||
|
||||
/**
|
||||
*iterated through all blocks and clear all locks
|
||||
*Needed to clear all lock tracking at once
|
||||
*/
|
||||
virtual void clearLocks();
|
||||
|
||||
/**
|
||||
* Called at end of simulation to complete average block reference stats.
|
||||
*/
|
||||
|
||||
8
src/mem/cache/tags/fa_lru.cc
vendored
8
src/mem/cache/tags/fa_lru.cc
vendored
@@ -317,14 +317,6 @@ FALRU::check()
|
||||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
FALRU::clearLocks()
|
||||
{
|
||||
for (int i = 0; i < numBlocks; i++){
|
||||
blks[i].clearLoadLocks();
|
||||
}
|
||||
}
|
||||
|
||||
FALRU *
|
||||
FALRUParams::create()
|
||||
{
|
||||
|
||||
6
src/mem/cache/tags/fa_lru.hh
vendored
6
src/mem/cache/tags/fa_lru.hh
vendored
@@ -305,12 +305,6 @@ public:
|
||||
return (tag);
|
||||
}
|
||||
|
||||
/**
|
||||
*iterated through all blocks and clear all locks
|
||||
*Needed to clear all lock tracking at once
|
||||
*/
|
||||
virtual void clearLocks();
|
||||
|
||||
/**
|
||||
* @todo Implement as in lru. Currently not used
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user