54a55
> #include "mem/cache/tags/indexing_policies/base.hh"
67c68
< cache(nullptr),
---
> cache(nullptr), indexingPolicy(p->indexing_policy),
81,82c82,83
< std::vector<ReplaceableEntry*>
< BaseTags::getPossibleLocations(const Addr addr) const
---
> ReplaceableEntry*
> BaseTags::findBlockBySetAndWay(int set, int way) const
84c85
< panic("Unimplemented getPossibleLocations for tags subclass");
---
> return indexingPolicy->getEntry(set, way);
93,95c94,96
< // Find possible locations for the given address
< const std::vector<ReplaceableEntry*> locations =
< getPossibleLocations(addr);
---
> // Find possible entries that may contain the given address
> const std::vector<ReplaceableEntry*> entries =
> indexingPolicy->getPossibleEntries(addr);
98c99
< for (const auto& location : locations) {
---
> for (const auto& location : entries) {
136a138,143
> Addr
> BaseTags::extractTag(const Addr addr) const
> {
> return indexingPolicy->extractTag(addr);
> }
>