base, mem-cache: Do not expose tags to the AssociativeCache
Exposing the tag of a cache entry through the associative cache APIs makes it hard to generalize the cache for structured tags. Ultimately the tag should be a property of the cache entry and any tag extraction logic (if needed) should reside there. In this we can reuse the associative cache for different Entry params, each one bearing a different representation of a tag Change-Id: I51b4526be64683614e01d763b1656e5be23a611b Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
This commit is contained in:
@@ -48,21 +48,22 @@ IrregularStreamBuffer::IrregularStreamBuffer(
|
||||
p.training_unit_entries,
|
||||
p.training_unit_assoc,
|
||||
p.training_unit_replacement_policy,
|
||||
p.training_unit_indexing_policy),
|
||||
p.training_unit_indexing_policy,
|
||||
TrainingUnitEntry(p.training_unit_indexing_policy)),
|
||||
psAddressMappingCache((name() + ".PSAddressMappingCache").c_str(),
|
||||
p.address_map_cache_entries,
|
||||
p.address_map_cache_assoc,
|
||||
p.ps_address_map_cache_replacement_policy,
|
||||
p.ps_address_map_cache_indexing_policy,
|
||||
AddressMappingEntry(prefetchCandidatesPerEntry,
|
||||
p.num_counter_bits)),
|
||||
p.address_map_cache_entries,
|
||||
p.address_map_cache_assoc,
|
||||
p.ps_address_map_cache_replacement_policy,
|
||||
p.ps_address_map_cache_indexing_policy,
|
||||
AddressMappingEntry(prefetchCandidatesPerEntry,
|
||||
p.num_counter_bits, p.ps_address_map_cache_indexing_policy)),
|
||||
spAddressMappingCache((name() + ".SPAddressMappingCache").c_str(),
|
||||
p.address_map_cache_entries,
|
||||
p.address_map_cache_assoc,
|
||||
p.sp_address_map_cache_replacement_policy,
|
||||
p.sp_address_map_cache_indexing_policy,
|
||||
AddressMappingEntry(prefetchCandidatesPerEntry,
|
||||
p.num_counter_bits)),
|
||||
p.address_map_cache_entries,
|
||||
p.address_map_cache_assoc,
|
||||
p.sp_address_map_cache_replacement_policy,
|
||||
p.sp_address_map_cache_indexing_policy,
|
||||
AddressMappingEntry(prefetchCandidatesPerEntry,
|
||||
p.num_counter_bits, p.sp_address_map_cache_indexing_policy)),
|
||||
structuralAddressCounter(0)
|
||||
{
|
||||
assert(isPowerOf2(prefetchCandidatesPerEntry));
|
||||
|
||||
Reference in New Issue
Block a user