From: Nikos Nikoleris Date: Tue, 21 Feb 2017 14:14:44 +0000 (+0000) Subject: mem: Remove unused functions from the tag classes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=da1ddb9aa77a9ba82003362e5ebcffd903221712;p=gem5.git mem: Remove unused functions from the tag classes Change-Id: I4f3c2c027b1acaaf791a4c71086f34a9b9fbf4df Reviewed-by: Andreas Hansson Signed-off-by: Andreas Sandberg --- diff --git a/src/mem/cache/tags/base.hh b/src/mem/cache/tags/base.hh index 8c68cc093..2b4795cc8 100644 --- a/src/mem/cache/tags/base.hh +++ b/src/mem/cache/tags/base.hh @@ -223,10 +223,6 @@ class BaseTags : public ClockedObject return -1; } - virtual unsigned getNumSets() const = 0; - - virtual unsigned getNumWays() const = 0; - virtual void invalidate(CacheBlk *blk) = 0; virtual CacheBlk* accessBlock(Addr addr, bool is_secure, Cycles &lat, diff --git a/src/mem/cache/tags/base_set_assoc.hh b/src/mem/cache/tags/base_set_assoc.hh index a6dcf0572..40ff5ca5d 100644 --- a/src/mem/cache/tags/base_set_assoc.hh +++ b/src/mem/cache/tags/base_set_assoc.hh @@ -126,47 +126,6 @@ public: */ virtual ~BaseSetAssoc(); - /** - * Return the block size. - * @return the block size. - */ - unsigned - getBlockSize() const - { - return blkSize; - } - - /** - * Return the subblock size. In the case of BaseSetAssoc it is always - * the block size. - * @return The block size. - */ - unsigned - getSubBlockSize() const - { - return blkSize; - } - - /** - * Return the number of sets this cache has - * @return The number of sets. - */ - unsigned - getNumSets() const override - { - return numSets; - } - - /** - * Return the number of ways this cache has - * @return The number of ways. - */ - unsigned - getNumWays() const override - { - return assoc; - } - /** * Find the cache block given set and way * @param set The set of the block. diff --git a/src/mem/cache/tags/fa_lru.hh b/src/mem/cache/tags/fa_lru.hh index 710dfafbf..49f10a0aa 100644 --- a/src/mem/cache/tags/fa_lru.hh +++ b/src/mem/cache/tags/fa_lru.hh @@ -216,46 +216,6 @@ public: void insertBlock(PacketPtr pkt, CacheBlk *blk) override; - /** - * Return the block size of this cache. - * @return The block size. - */ - unsigned - getBlockSize() const - { - return blkSize; - } - - /** - * Return the subblock size of this cache, always the block size. - * @return The block size. - */ - unsigned - getSubBlockSize() const - { - return blkSize; - } - - /** - * Return the number of sets this cache has - * @return The number of sets. - */ - unsigned - getNumSets() const override - { - return 1; - } - - /** - * Return the number of ways this cache has - * @return The number of ways. - */ - unsigned - getNumWays() const override - { - return numBlocks; - } - /** * Find the cache block given set and way * @param set The set of the block.