changeset cc435f8f8b05 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=cc435f8f8b05
description:
mem: Remove unused functions from the tag classes
Change-Id: I4f3c2c027b1acaaf791a4c71086f34a9b9fbf4df
Reviewed-by: Andreas Hansson <[email protected]>
Signed-off-by: Andreas Sandberg <[email protected]>
diffstat:
src/mem/cache/tags/base.hh | 4 ---
src/mem/cache/tags/base_set_assoc.hh | 41 ------------------------------------
src/mem/cache/tags/fa_lru.hh | 40 -----------------------------------
3 files changed, 0 insertions(+), 85 deletions(-)
diffs (115 lines):
diff -r 1342b4dbc556 -r cc435f8f8b05 src/mem/cache/tags/base.hh
--- a/src/mem/cache/tags/base.hh Tue Feb 21 14:14:44 2017 +0000
+++ b/src/mem/cache/tags/base.hh Tue Feb 21 14:14:44 2017 +0000
@@ -223,10 +223,6 @@
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 -r 1342b4dbc556 -r cc435f8f8b05 src/mem/cache/tags/base_set_assoc.hh
--- a/src/mem/cache/tags/base_set_assoc.hh Tue Feb 21 14:14:44 2017 +0000
+++ b/src/mem/cache/tags/base_set_assoc.hh Tue Feb 21 14:14:44 2017 +0000
@@ -127,47 +127,6 @@
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.
* @param way The way of the block.
diff -r 1342b4dbc556 -r cc435f8f8b05 src/mem/cache/tags/fa_lru.hh
--- a/src/mem/cache/tags/fa_lru.hh Tue Feb 21 14:14:44 2017 +0000
+++ b/src/mem/cache/tags/fa_lru.hh Tue Feb 21 14:14:44 2017 +0000
@@ -217,46 +217,6 @@
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.
* @param way The way of the block.
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev