base_set_assoc.hh (13220:78a8391a0f95) | base_set_assoc.hh (13222:0dbcc7d7d66f) |
---|---|
1/* 2 * Copyright (c) 2012-2014,2017 ARM Limited 3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 40 unchanged lines hidden (view full) --- 49#define __MEM_CACHE_TAGS_BASE_SET_ASSOC_HH__ 50 51#include <functional> 52#include <string> 53#include <vector> 54 55#include "base/logging.hh" 56#include "base/types.hh" | 1/* 2 * Copyright (c) 2012-2014,2017 ARM Limited 3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 40 unchanged lines hidden (view full) --- 49#define __MEM_CACHE_TAGS_BASE_SET_ASSOC_HH__ 50 51#include <functional> 52#include <string> 53#include <vector> 54 55#include "base/logging.hh" 56#include "base/types.hh" |
57#include "debug/CacheRepl.hh" | |
58#include "mem/cache/base.hh" 59#include "mem/cache/blk.hh" 60#include "mem/cache/replacement_policies/base.hh" 61#include "mem/cache/tags/base.hh" 62#include "mem/cache/tags/indexing_policies/base.hh" 63#include "params/BaseSetAssoc.hh" 64 65/** --- 116 unchanged lines hidden (view full) --- 182 183 // Choose replacement victim from replacement candidates 184 CacheBlk* victim = static_cast<CacheBlk*>(replacementPolicy->getVictim( 185 entries)); 186 187 // There is only one eviction for this replacement 188 evict_blks.push_back(victim); 189 | 57#include "mem/cache/base.hh" 58#include "mem/cache/blk.hh" 59#include "mem/cache/replacement_policies/base.hh" 60#include "mem/cache/tags/base.hh" 61#include "mem/cache/tags/indexing_policies/base.hh" 62#include "params/BaseSetAssoc.hh" 63 64/** --- 116 unchanged lines hidden (view full) --- 181 182 // Choose replacement victim from replacement candidates 183 CacheBlk* victim = static_cast<CacheBlk*>(replacementPolicy->getVictim( 184 entries)); 185 186 // There is only one eviction for this replacement 187 evict_blks.push_back(victim); 188 |
190 DPRINTF(CacheRepl, "set %x, way %x: selecting blk for replacement\n", 191 victim->getSet(), victim->getWay()); 192 | |
193 return victim; 194 } 195 196 /** 197 * Insert the new block into the cache and update replacement data. 198 * 199 * @param addr Address of the block. 200 * @param is_secure Whether the block is in secure space or not. --- 65 unchanged lines hidden --- | 189 return victim; 190 } 191 192 /** 193 * Insert the new block into the cache and update replacement data. 194 * 195 * @param addr Address of the block. 196 * @param is_secure Whether the block is in secure space or not. --- 65 unchanged lines hidden --- |