197,198c197,198
< const std::vector<SectorBlk*>
< SectorTags::getPossibleLocations(Addr addr) const
---
> std::vector<ReplaceableEntry*>
> SectorTags::getPossibleLocations(const Addr addr) const
200c200,204
< return sets[extractSet(addr)];
---
> std::vector<ReplaceableEntry*> locations;
> for (const auto& blk : sets[extractSet(addr)]) {
> locations.push_back(static_cast<ReplaceableEntry*>(blk));
> }
> return locations;
241c245,246
< const std::vector<SectorBlk*> locations = getPossibleLocations(addr);
---
> const std::vector<ReplaceableEntry*> locations =
> getPossibleLocations(addr);
245c250
< auto blk = sector->blks[offset];
---
> auto blk = static_cast<SectorBlk*>(sector)->blks[offset];
267c272
< const std::vector<SectorBlk*> sector_locations =
---
> const std::vector<ReplaceableEntry*> sector_locations =
273,276c278,282
< for (const auto& sector : sector_locations){
< if ((tag == sector->getTag()) && sector->isValid() &&
< (is_secure == sector->isSecure())){
< victim_sector = sector;
---
> for (const auto& sector : sector_locations) {
> SectorBlk* sector_blk = static_cast<SectorBlk*>(sector);
> if ((tag == sector_blk->getTag()) && sector_blk->isValid() &&
> (is_secure == sector_blk->isSecure())){
> victim_sector = sector_blk;
285,286c291
< std::vector<ReplaceableEntry*>(
< sector_locations.begin(), sector_locations.end())));
---
> sector_locations));