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 --- 108 unchanged lines hidden (view full) --- 117 * Find the cache block for the given address. 118 * @param addr The address to find. 119 * @return The cache block of the address, if any. 120 */ 121 FALRUBlk * hashLookup(Addr addr) const; 122 123 /** 124 * Move a cache block to the MRU position. |
125 * |
126 * @param blk The block to promote. 127 */ 128 void moveToHead(FALRUBlk *blk); 129 130 /** |
131 * Move a cache block to the LRU position. 132 * 133 * @param blk The block to demote. 134 */ 135 void moveToTail(FALRUBlk *blk); 136 137 /** |
138 * Check to make sure all the cache boundaries are still where they should 139 * be. Used for debugging. 140 * @return True if everything is correct. 141 */ 142 bool check(); 143 144 /** 145 * @defgroup FALRUStats Fully Associative LRU specific statistics --- 147 unchanged lines hidden --- |