From 6eb434c8a227cdc30b459b2b96cb4354e3312554 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Fri, 21 Aug 2015 07:03:25 -0400 Subject: 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. --- src/mem/cache/cache.cc | 3 --- src/mem/cache/tags/base.hh | 6 ------ src/mem/cache/tags/base_set_assoc.cc | 8 -------- src/mem/cache/tags/base_set_assoc.hh | 6 ------ src/mem/cache/tags/fa_lru.cc | 8 -------- src/mem/cache/tags/fa_lru.hh | 6 ------ src/mem/request.hh | 3 --- 7 files changed, 40 deletions(-) (limited to 'src/mem') diff --git a/src/mem/cache/cache.cc b/src/mem/cache/cache.cc index 215fc323a..81c2d35e1 100644 --- a/src/mem/cache/cache.cc +++ b/src/mem/cache/cache.cc @@ -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()) { diff --git a/src/mem/cache/tags/base.hh b/src/mem/cache/tags/base.hh index 05f51167e..f1ef947a5 100644 --- a/src/mem/cache/tags/base.hh +++ b/src/mem/cache/tags/base.hh @@ -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 */ diff --git a/src/mem/cache/tags/base_set_assoc.cc b/src/mem/cache/tags/base_set_assoc.cc index 8c48337bc..6fc186d19 100644 --- a/src/mem/cache/tags/base_set_assoc.cc +++ b/src/mem/cache/tags/base_set_assoc.cc @@ -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; diff --git a/src/mem/cache/tags/base_set_assoc.hh b/src/mem/cache/tags/base_set_assoc.hh index 78c7489fe..9fe23ea91 100644 --- a/src/mem/cache/tags/base_set_assoc.hh +++ b/src/mem/cache/tags/base_set_assoc.hh @@ -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. */ diff --git a/src/mem/cache/tags/fa_lru.cc b/src/mem/cache/tags/fa_lru.cc index a53d25665..3f717e3a7 100644 --- a/src/mem/cache/tags/fa_lru.cc +++ b/src/mem/cache/tags/fa_lru.cc @@ -317,14 +317,6 @@ FALRU::check() return true; } -void -FALRU::clearLocks() -{ - for (int i = 0; i < numBlocks; i++){ - blks[i].clearLoadLocks(); - } -} - FALRU * FALRUParams::create() { diff --git a/src/mem/cache/tags/fa_lru.hh b/src/mem/cache/tags/fa_lru.hh index 1c6bd2431..def4c9b2c 100644 --- a/src/mem/cache/tags/fa_lru.hh +++ b/src/mem/cache/tags/fa_lru.hh @@ -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 */ diff --git a/src/mem/request.hh b/src/mem/request.hh index fb684ef2f..d40f610f2 100644 --- a/src/mem/request.hh +++ b/src/mem/request.hh @@ -123,8 +123,6 @@ class Request STRICT_ORDER = 0x00000800, /** This request is to a memory mapped register. */ MMAPPED_IPR = 0x00002000, - /** This request is a clear exclusive. */ - CLEAR_LL = 0x00004000, /** This request is made in privileged mode. */ PRIVILEGED = 0x00008000, @@ -655,7 +653,6 @@ class Request bool isSwap() const { return _flags.isSet(MEM_SWAP|MEM_SWAP_COND); } bool isCondSwap() const { return _flags.isSet(MEM_SWAP_COND); } bool isMmappedIpr() const { return _flags.isSet(MMAPPED_IPR); } - bool isClearLL() const { return _flags.isSet(CLEAR_LL); } bool isSecure() const { return _flags.isSet(SECURE); } bool isPTWalk() const { return _flags.isSet(PT_WALK); } }; -- cgit v1.2.3