1/* 2 * Copyright (c) 2012-2013,2016,2018 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 --- 181 unchanged lines hidden (view full) --- 190 * 191 * @param set The set of the block. 192 * @param way The way of the block. 193 * @return The block. 194 */ 195 ReplaceableEntry* findBlockBySetAndWay(int set, int way) const override; 196 197 /** |
198 * Find replacement victim based on address. The list of evicted blocks 199 * only contains the victim. |
200 * 201 * @param addr Address to find a victim for. |
202 * @param evict_blks Cache blocks to be evicted. |
203 * @return Cache block to be replaced. 204 */ |
205 CacheBlk* findVictim(Addr addr, std::vector<CacheBlk*>& evict_blks) const 206 override; |
207 208 /** 209 * Insert the new block into the cache and update replacement data. 210 * 211 * @param pkt Packet holding the address to update 212 * @param blk The block to update. 213 */ 214 void insertBlock(PacketPtr pkt, CacheBlk *blk) override; --- 164 unchanged lines hidden --- |