*/
virtual CacheBlk* findVictim(Addr addr, const bool is_secure,
const std::size_t size,
- std::vector<CacheBlk*>& evict_blks) const = 0;
+ std::vector<CacheBlk*>& evict_blks) = 0;
/**
* Access block and update replacement data. May not succeed, in which case
*/
CacheBlk* findVictim(Addr addr, const bool is_secure,
const std::size_t size,
- std::vector<CacheBlk*>& evict_blks) const override
+ std::vector<CacheBlk*>& evict_blks) override
{
// Get possible entries to be victimized
const std::vector<ReplaceableEntry*> entries =
CacheBlk*
CompressedTags::findVictim(Addr addr, const bool is_secure,
const std::size_t compressed_size,
- std::vector<CacheBlk*>& evict_blks) const
+ std::vector<CacheBlk*>& evict_blks)
{
// Get all possible locations of this superblock
const std::vector<ReplaceableEntry*> superblock_entries =
*/
CacheBlk* findVictim(Addr addr, const bool is_secure,
const std::size_t compressed_size,
- std::vector<CacheBlk*>& evict_blks) const override;
+ std::vector<CacheBlk*>& evict_blks) override;
/**
* Insert the new block into the cache and update replacement data.
CacheBlk*
FALRU::findVictim(Addr addr, const bool is_secure, const std::size_t size,
- std::vector<CacheBlk*>& evict_blks) const
+ std::vector<CacheBlk*>& evict_blks)
{
// The victim is always stored on the tail for the FALRU
FALRUBlk* victim = tail;
*/
CacheBlk* findVictim(Addr addr, const bool is_secure,
const std::size_t size,
- std::vector<CacheBlk*>& evict_blks) const override;
+ std::vector<CacheBlk*>& evict_blks) override;
/**
* Insert the new block into the cache and update replacement data.
CacheBlk*
SectorTags::findVictim(Addr addr, const bool is_secure, const std::size_t size,
- std::vector<CacheBlk*>& evict_blks) const
+ std::vector<CacheBlk*>& evict_blks)
{
// Get possible entries to be victimized
const std::vector<ReplaceableEntry*> sector_entries =
*/
CacheBlk* findVictim(Addr addr, const bool is_secure,
const std::size_t size,
- std::vector<CacheBlk*>& evict_blks) const override;
+ std::vector<CacheBlk*>& evict_blks) override;
/**
* Calculate a block's offset in a sector from the address.