fa_lru.hh (12731:36a41bd85c0f) fa_lru.hh (12743:b5ccee582b40)
1/*
2 * Copyright (c) 2012-2013,2016,2018 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

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

181 * @param addr The address to look for.
182 * @param is_secure True if the target memory space is secure.
183 * @param asid The address space ID.
184 * @return Pointer to the cache block.
185 */
186 CacheBlk* findBlock(Addr addr, bool is_secure) const override;
187
188 /**
1/*
2 * Copyright (c) 2012-2013,2016,2018 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

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

181 * @param addr The address to look for.
182 * @param is_secure True if the target memory space is secure.
183 * @param asid The address space ID.
184 * @return Pointer to the cache block.
185 */
186 CacheBlk* findBlock(Addr addr, bool is_secure) const override;
187
188 /**
189 * Find a block given set and way.
190 *
191 * @param set The set of the block.
192 * @param way The way of the block.
193 * @return The block.
194 */
195 ReplaceableEntry* findBlockBySetAndWay(int set, int way) const override;
196
197 /**
189 * Find replacement victim based on address.
190 *
191 * @param addr Address to find a victim for.
192 * @return Cache block to be replaced.
193 */
194 CacheBlk* findVictim(Addr addr) override;
195
196 /**
197 * Insert the new block into the cache and update replacement data.
198 *
199 * @param pkt Packet holding the address to update
200 * @param blk The block to update.
201 */
202 void insertBlock(PacketPtr pkt, CacheBlk *blk) override;
203
204 /**
198 * Find replacement victim based on address.
199 *
200 * @param addr Address to find a victim for.
201 * @return Cache block to be replaced.
202 */
203 CacheBlk* findVictim(Addr addr) override;
204
205 /**
206 * Insert the new block into the cache and update replacement data.
207 *
208 * @param pkt Packet holding the address to update
209 * @param blk The block to update.
210 */
211 void insertBlock(PacketPtr pkt, CacheBlk *blk) override;
212
213 /**
205 * Find the cache block given set and way
206 * @param set The set of the block.
207 * @param way The way of the block.
208 * @return The cache block.
209 */
210 CacheBlk* findBlockBySetAndWay(int set, int way) const override;
211
212 /**
213 * Generate the tag from the addres. For fully associative this is just the
214 * block address.
215 * @param addr The address to get the tag from.
216 * @return The tag.
217 */
218 Addr extractTag(Addr addr) const override
219 {
220 return blkAlign(addr);

--- 154 unchanged lines hidden ---
214 * Generate the tag from the addres. For fully associative this is just the
215 * block address.
216 * @param addr The address to get the tag from.
217 * @return The tag.
218 */
219 Addr extractTag(Addr addr) const override
220 {
221 return blkAlign(addr);

--- 154 unchanged lines hidden ---