summaryrefslogtreecommitdiff
path: root/src/mem/cache/tags/fa_lru.hh
diff options
context:
space:
mode:
authorNikos Nikoleris <nikos.nikoleris@arm.com>2016-10-31 12:02:24 +0000
committerAndreas Sandberg <andreas.sandberg@arm.com>2017-03-03 14:09:42 +0000
commit83cabc6264d7aac752e6f1bf8acc7b7b042afa50 (patch)
treed0029d968f67521f61e4d3b0ae61d359e372b30e /src/mem/cache/tags/fa_lru.hh
parentce2a0076c962a902f34442010f4373f7347a0156 (diff)
downloadgem5-83cabc6264d7aac752e6f1bf8acc7b7b042afa50.tar.xz
mem: Make blkAlign a common function between all tag classes
blkAlign was defined as a separate function in the base associative and fully-associative tags classes although both functions implemented identical functionality. This patch moves the blkAlign in the base tags class. Change-Id: I3d415d0e62bddeec7ce0d559667e40a8c5fdc2d4 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Andreas Hansson <andreas.hansson@arm.com>
Diffstat (limited to 'src/mem/cache/tags/fa_lru.hh')
-rw-r--r--src/mem/cache/tags/fa_lru.hh10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/mem/cache/tags/fa_lru.hh b/src/mem/cache/tags/fa_lru.hh
index 26de1ede2..a266fb516 100644
--- a/src/mem/cache/tags/fa_lru.hh
+++ b/src/mem/cache/tags/fa_lru.hh
@@ -221,16 +221,6 @@ public:
CacheBlk* findBlockBySetAndWay(int set, int way) const override;
/**
- * Align an address to the block size.
- * @param addr the address to align.
- * @return The aligned address.
- */
- Addr blkAlign(Addr addr) const
- {
- return (addr & ~(Addr)(blkSize-1));
- }
-
- /**
* Generate the tag from the addres. For fully associative this is just the
* block address.
* @param addr The address to get the tag from.