1/* 2 * Copyright (c) 2012-2013,2016 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 --- 53 unchanged lines hidden (view full) --- 62 */ 63class FALRUBlk : public CacheBlk 64{ 65public: 66 /** The previous block in LRU order. */ 67 FALRUBlk *prev; 68 /** The next block in LRU order. */ 69 FALRUBlk *next; |
70 71 /** 72 * A bit mask of the sizes of cache that this block is resident in. 73 * Each bit represents a power of 2 in MB size cache. 74 * If bit 0 is set, this block is in a 1MB cache 75 * If bit 2 is set, this block is in a 4MB cache, etc. 76 * There is one bit for each cache smaller than the full size (default 77 * 16MB). --- 119 unchanged lines hidden (view full) --- 197 * @param addr The address to look for. 198 * @param is_secure True if the target memory space is secure. 199 * @param asid The address space ID. 200 * @return Pointer to the cache block. 201 */ 202 CacheBlk* findBlock(Addr addr, bool is_secure) const override; 203 204 /** |
205 * Find replacement victim based on address. 206 * 207 * @param addr Address to find a victim for. 208 * @return Cache block to be replaced. |
209 */ 210 CacheBlk* findVictim(Addr addr) override; 211 212 void insertBlock(PacketPtr pkt, CacheBlk *blk) override; 213 214 /** 215 * Find the cache block given set and way 216 * @param set The set of the block. --- 64 unchanged lines hidden --- |