From 1c57195d7fcf154187e757b1ddd8ebe68c649adb Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Sat, 13 Apr 2024 09:27:44 +0100 Subject: [PATCH] base: Do not require an AssociativeCache to store a CacheEntry As long as the AssociativeCache Entry parameter satisfies the interface it should be fine. We enforce the bare minimum of having a replaceable entry. Doing otherwise will restrict our capability to have a generic cache with generic tags Change-Id: I23e32b7540fea6b6e5894aca3d91538e81214932 Signed-off-by: Giacomo Travaglini --- src/base/cache/associative_cache.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/cache/associative_cache.hh b/src/base/cache/associative_cache.hh index 73bb9afdf5..f4771d1214 100644 --- a/src/base/cache/associative_cache.hh +++ b/src/base/cache/associative_cache.hh @@ -62,8 +62,8 @@ class AssociativeCache : public Named { protected: - static_assert(std::is_base_of_v, - "Entry should be derived from CacheEntry"); + static_assert(std::is_base_of_v, + "Entry should be derived from ReplaceableEntry"); typedef replacement_policy::Base BaseReplacementPolicy; typedef typename Entry::IndexingPolicy IndexingPolicy;