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 <giacomo.travaglini@arm.com>
This commit is contained in:
Giacomo Travaglini
2024-04-13 09:27:44 +01:00
parent 8c81479193
commit 1c57195d7f

View File

@@ -62,8 +62,8 @@ class AssociativeCache : public Named
{
protected:
static_assert(std::is_base_of_v<CacheEntry, Entry>,
"Entry should be derived from CacheEntry");
static_assert(std::is_base_of_v<ReplaceableEntry, Entry>,
"Entry should be derived from ReplaceableEntry");
typedef replacement_policy::Base BaseReplacementPolicy;
typedef typename Entry::IndexingPolicy IndexingPolicy;