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 --- 172 unchanged lines hidden (view full) --- 181 * @param addr The address to look for. 182 * @param is_secure True if the target memory space is secure. 183 * @param asid The address space ID. 184 * @return Pointer to the cache block. 185 */ 186 CacheBlk* findBlock(Addr addr, bool is_secure) const override; 187 188 /** |
189 * Find a block given set and way. 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. 199 * 200 * @param addr Address to find a victim for. 201 * @return Cache block to be replaced. 202 */ 203 CacheBlk* findVictim(Addr addr) override; 204 205 /** 206 * Insert the new block into the cache and update replacement data. 207 * 208 * @param pkt Packet holding the address to update 209 * @param blk The block to update. 210 */ 211 void insertBlock(PacketPtr pkt, CacheBlk *blk) override; 212 213 /** |
214 * Generate the tag from the addres. For fully associative this is just the 215 * block address. 216 * @param addr The address to get the tag from. 217 * @return The tag. 218 */ 219 Addr extractTag(Addr addr) const override 220 { 221 return blkAlign(addr); --- 154 unchanged lines hidden --- |