fa_lru.hh (5706:2cc2387049bc) | fa_lru.hh (5716:ee56bb539212) |
---|---|
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; --- 157 unchanged lines hidden (view full) --- 166 167 /** 168 * Invalidate a cache block. 169 * @param blk The block to invalidate. 170 */ 171 void invalidateBlk(BlkType *blk); 172 173 /** | 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; --- 157 unchanged lines hidden (view full) --- 166 167 /** 168 * Invalidate a cache block. 169 * @param blk The block to invalidate. 170 */ 171 void invalidateBlk(BlkType *blk); 172 173 /** |
174 * Find the block in the cache and update the replacement data. Returns 175 * the access latency and the in cache flags as a side effect | 174 * Access block and update replacement data. May not succeed, in which case 175 * NULL pointer is returned. This has all the implications of a cache 176 * access and should only be used as such. 177 * Returns the access latency and inCache flags as a side effect. |
176 * @param addr The address to look for. 177 * @param asid The address space ID. 178 * @param lat The latency of the access. 179 * @param inCache The FALRUBlk::inCache flags. 180 * @return Pointer to the cache block. 181 */ | 178 * @param addr The address to look for. 179 * @param asid The address space ID. 180 * @param lat The latency of the access. 181 * @param inCache The FALRUBlk::inCache flags. 182 * @return Pointer to the cache block. 183 */ |
182 FALRUBlk* findBlock(Addr addr, int &lat, int *inCache = 0); | 184 FALRUBlk* accessBlock(Addr addr, int &lat, int *inCache = 0); |
183 184 /** 185 * Find the block in the cache, do not update the replacement data. 186 * @param addr The address to look for. 187 * @param asid The address space ID. 188 * @return Pointer to the cache block. 189 */ 190 FALRUBlk* findBlock(Addr addr) const; --- 115 unchanged lines hidden --- | 185 186 /** 187 * Find the block in the cache, do not update the replacement data. 188 * @param addr The address to look for. 189 * @param asid The address space ID. 190 * @return Pointer to the cache block. 191 */ 192 FALRUBlk* findBlock(Addr addr) const; --- 115 unchanged lines hidden --- |