fa_lru.hh (12574:22936e2eb2da) fa_lru.hh (12600:e670dd17c8cf)
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

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

62 */
63class FALRUBlk : public CacheBlk
64{
65public:
66 /** The previous block in LRU order. */
67 FALRUBlk *prev;
68 /** The next block in LRU order. */
69 FALRUBlk *next;
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

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

62 */
63class FALRUBlk : public CacheBlk
64{
65public:
66 /** The previous block in LRU order. */
67 FALRUBlk *prev;
68 /** The next block in LRU order. */
69 FALRUBlk *next;
70 /** Has this block been touched? */
71 bool isTouched;
72
73 /**
74 * A bit mask of the sizes of cache that this block is resident in.
75 * Each bit represents a power of 2 in MB size cache.
76 * If bit 0 is set, this block is in a 1MB cache
77 * If bit 2 is set, this block is in a 4MB cache, etc.
78 * There is one bit for each cache smaller than the full size (default
79 * 16MB).

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

199 * @param addr The address to look for.
200 * @param is_secure True if the target memory space is secure.
201 * @param asid The address space ID.
202 * @return Pointer to the cache block.
203 */
204 CacheBlk* findBlock(Addr addr, bool is_secure) const override;
205
206 /**
70
71 /**
72 * A bit mask of the sizes of cache that this block is resident in.
73 * Each bit represents a power of 2 in MB size cache.
74 * If bit 0 is set, this block is in a 1MB cache
75 * If bit 2 is set, this block is in a 4MB cache, etc.
76 * There is one bit for each cache smaller than the full size (default
77 * 16MB).

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

197 * @param addr The address to look for.
198 * @param is_secure True if the target memory space is secure.
199 * @param asid The address space ID.
200 * @return Pointer to the cache block.
201 */
202 CacheBlk* findBlock(Addr addr, bool is_secure) const override;
203
204 /**
207 * Find a replacement block for the address provided.
208 * @param pkt The request to a find a replacement candidate for.
209 * @return The block to place the replacement in.
205 * Find replacement victim based on address.
206 *
207 * @param addr Address to find a victim for.
208 * @return Cache block to be replaced.
210 */
211 CacheBlk* findVictim(Addr addr) override;
212
213 void insertBlock(PacketPtr pkt, CacheBlk *blk) override;
214
215 /**
216 * Find the cache block given set and way
217 * @param set The set of the block.

--- 64 unchanged lines hidden ---
209 */
210 CacheBlk* findVictim(Addr addr) override;
211
212 void insertBlock(PacketPtr pkt, CacheBlk *blk) override;
213
214 /**
215 * Find the cache block given set and way
216 * @param set The set of the block.

--- 64 unchanged lines hidden ---