summaryrefslogtreecommitdiff
path: root/src/mem/cache/tags/base.hh
diff options
context:
space:
mode:
authorDaniel R. Carvalho <odanrc@yahoo.com.br>2018-03-09 14:53:17 +0100
committerDaniel Carvalho <odanrc@yahoo.com.br>2018-04-06 08:23:16 +0000
commitaffbf2a6086631e724949cf5764ba55f4e40423d (patch)
tree03a89a651477a2c933614821829ab95b150f5539 /src/mem/cache/tags/base.hh
parentf7c6d86009c03a953da25df8f29186d6cc07eff3 (diff)
downloadgem5-affbf2a6086631e724949cf5764ba55f4e40423d.tar.xz
mem-cache: Move insertBlock functionality in FALRU
Block insertion is being done in the getCandidates function, while the insertBlock function does not do anything. Besides, BaseTags' stats weren't being updated. Change-Id: Iadab9c1ea61519214f66fa24c4b91c4fc95604c0 Reviewed-on: https://gem5-review.googlesource.com/8882 Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Diffstat (limited to 'src/mem/cache/tags/base.hh')
-rw-r--r--src/mem/cache/tags/base.hh8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mem/cache/tags/base.hh b/src/mem/cache/tags/base.hh
index 3370de284..4cf67747b 100644
--- a/src/mem/cache/tags/base.hh
+++ b/src/mem/cache/tags/base.hh
@@ -265,7 +265,13 @@ class BaseTags : public ClockedObject
virtual Addr extractTag(Addr addr) const = 0;
- virtual void insertBlock(PacketPtr pkt, CacheBlk *blk) = 0;
+ /**
+ * Insert the new block into the cache and update stats.
+ *
+ * @param pkt Packet holding the address to update
+ * @param blk The block to update.
+ */
+ virtual void insertBlock(PacketPtr pkt, CacheBlk *blk);
/**
* Regenerate the block address.