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:
4
src/base/cache/associative_cache.hh
vendored
4
src/base/cache/associative_cache.hh
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user