fa_lru.hh (9796:485399270ca1) fa_lru.hh (10028:fb8c44de891a)
1/*
2 * Copyright (c) 2012-2013 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

--- 168 unchanged lines hidden (view full) ---

177 void invalidate(BlkType *blk);
178
179 /**
180 * Access block and update replacement data. May not succeed, in which case
181 * NULL pointer is returned. This has all the implications of a cache
182 * access and should only be used as such.
183 * Returns the access latency and inCache flags as a side effect.
184 * @param addr The address to look for.
1/*
2 * Copyright (c) 2012-2013 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

--- 168 unchanged lines hidden (view full) ---

177 void invalidate(BlkType *blk);
178
179 /**
180 * Access block and update replacement data. May not succeed, in which case
181 * NULL pointer is returned. This has all the implications of a cache
182 * access and should only be used as such.
183 * Returns the access latency and inCache flags as a side effect.
184 * @param addr The address to look for.
185 * @param is_secure True if the target memory space is secure.
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 */
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 */
190 FALRUBlk* accessBlock(Addr addr, Cycles &lat, int context_src, int *inCache = 0);
191 FALRUBlk* accessBlock(Addr addr, bool is_secure, Cycles &lat,
192 int context_src, int *inCache = 0);
191
192 /**
193 * Find the block in the cache, do not update the replacement data.
194 * @param addr The address to look for.
193
194 /**
195 * Find the block in the cache, do not update the replacement data.
196 * @param addr The address to look for.
197 * @param is_secure True if the target memory space is secure.
195 * @param asid The address space ID.
196 * @return Pointer to the cache block.
197 */
198 * @param asid The address space ID.
199 * @return Pointer to the cache block.
200 */
198 FALRUBlk* findBlock(Addr addr) const;
201 FALRUBlk* findBlock(Addr addr, bool is_secure) const;
199
200 /**
201 * Find a replacement block for the address provided.
202 * @param pkt The request to a find a replacement candidate for.
203 * @param writebacks List for any writebacks to be performed.
204 * @return The block to place the replacement in.
205 */
206 FALRUBlk* findVictim(Addr addr, PacketList & writebacks);

--- 118 unchanged lines hidden ---
202
203 /**
204 * Find a replacement block for the address provided.
205 * @param pkt The request to a find a replacement candidate for.
206 * @param writebacks List for any writebacks to be performed.
207 * @return The block to place the replacement in.
208 */
209 FALRUBlk* findVictim(Addr addr, PacketList & writebacks);

--- 118 unchanged lines hidden ---