summaryrefslogtreecommitdiff
path: root/src/mem/cache/tags/fa_lru.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/fa_lru.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/fa_lru.hh')
-rw-r--r--src/mem/cache/tags/fa_lru.hh12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mem/cache/tags/fa_lru.hh b/src/mem/cache/tags/fa_lru.hh
index 7f3f99ae0..129af9f37 100644
--- a/src/mem/cache/tags/fa_lru.hh
+++ b/src/mem/cache/tags/fa_lru.hh
@@ -62,7 +62,7 @@
*/
class FALRUBlk : public CacheBlk
{
-public:
+ public:
/** The previous block in LRU order. */
FALRUBlk *prev;
/** The next block in LRU order. */
@@ -151,8 +151,7 @@ class FALRU : public BaseTags
* @}
*/
-public:
-
+ public:
typedef FALRUParams Params;
/**
@@ -209,6 +208,12 @@ public:
*/
CacheBlk* findVictim(Addr addr) override;
+ /**
+ * Insert the new block into the cache and update replacement data.
+ *
+ * @param pkt Packet holding the address to update
+ * @param blk The block to update.
+ */
void insertBlock(PacketPtr pkt, CacheBlk *blk) override;
/**
@@ -274,7 +279,6 @@ public:
return;
}
}
-
};
#endif // __MEM_CACHE_TAGS_FA_LRU_HH__