fa_lru.hh (3349:fec4a86fa212) | fa_lru.hh (3862:ec47e4243107) |
---|---|
1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 159 unchanged lines hidden (view full) --- 168 * Return true if the address is found in the cache. 169 * @param asid The address space ID. 170 * @param addr The address to look for. 171 * @return True if the address is in the cache. 172 */ 173 bool probe(Addr addr) const; 174 175 /** | 1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 159 unchanged lines hidden (view full) --- 168 * Return true if the address is found in the cache. 169 * @param asid The address space ID. 170 * @param addr The address to look for. 171 * @return True if the address is in the cache. 172 */ 173 bool probe(Addr addr) const; 174 175 /** |
176 * Invalidate the cache block that contains the given addr. 177 * @param asid The address space ID. 178 * @param addr The address to invalidate. | 176 * Invalidate a cache block. 177 * @param blk The block to invalidate. |
179 */ | 178 */ |
180 void invalidateBlk(Addr addr); | 179 void invalidateBlk(BlkType *blk); |
181 182 /** 183 * Find the block in the cache and update the replacement data. Returns 184 * the access latency and the in cache flags as a side effect 185 * @param addr The address to look for. 186 * @param asid The address space ID. 187 * @param lat The latency of the access. 188 * @param inCache The FALRUBlk::inCache flags. 189 * @return Pointer to the cache block. 190 */ 191 FALRUBlk* findBlock(Addr addr, int &lat, int *inCache = 0); 192 193 /** | 180 181 /** 182 * Find the block in the cache and update the replacement data. Returns 183 * the access latency and the in cache flags as a side effect 184 * @param addr The address to look for. 185 * @param asid The address space ID. 186 * @param lat The latency of the access. 187 * @param inCache The FALRUBlk::inCache flags. 188 * @return Pointer to the cache block. 189 */ 190 FALRUBlk* findBlock(Addr addr, int &lat, int *inCache = 0); 191 192 /** |
194 * Find the block in the cache and update the replacement data. Returns 195 * the access latency and the in cache flags as a side effect 196 * @param pkt The req whose block to find 197 * @param lat The latency of the access. 198 * @param inCache The FALRUBlk::inCache flags. 199 * @return Pointer to the cache block. 200 */ 201 FALRUBlk* findBlock(PacketPtr &pkt, int &lat, int *inCache = 0); 202 203 /** | |
204 * Find the block in the cache, do not update the replacement data. 205 * @param addr The address to look for. 206 * @param asid The address space ID. 207 * @return Pointer to the cache block. 208 */ 209 FALRUBlk* findBlock(Addr addr) const; 210 211 /** --- 116 unchanged lines hidden --- | 193 * Find the block in the cache, do not update the replacement data. 194 * @param addr The address to look for. 195 * @param asid The address space ID. 196 * @return Pointer to the cache block. 197 */ 198 FALRUBlk* findBlock(Addr addr) const; 199 200 /** --- 116 unchanged lines hidden --- |