fa_lru.hh (13164:da6240a1ccfb) fa_lru.hh (13215:82cdb8db4643)
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

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

57
58#include "base/bitfield.hh"
59#include "base/intmath.hh"
60#include "base/logging.hh"
61#include "base/statistics.hh"
62#include "base/types.hh"
63#include "mem/cache/blk.hh"
64#include "mem/cache/tags/base.hh"
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

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

57
58#include "base/bitfield.hh"
59#include "base/intmath.hh"
60#include "base/logging.hh"
61#include "base/statistics.hh"
62#include "base/types.hh"
63#include "mem/cache/blk.hh"
64#include "mem/cache/tags/base.hh"
65#include "mem/packet.hh"
66#include "params/FALRU.hh"
67
68// Uncomment to enable sanity checks for the FALRU cache and the
69// TrackedCaches class
70//#define FALRU_DEBUG
71
72class ReplaceableEntry;
73

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

209 * @return Cache block to be replaced.
210 */
211 CacheBlk* findVictim(Addr addr, const bool is_secure,
212 std::vector<CacheBlk*>& evict_blks) const override;
213
214 /**
215 * Insert the new block into the cache and update replacement data.
216 *
65#include "params/FALRU.hh"
66
67// Uncomment to enable sanity checks for the FALRU cache and the
68// TrackedCaches class
69//#define FALRU_DEBUG
70
71class ReplaceableEntry;
72

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

208 * @return Cache block to be replaced.
209 */
210 CacheBlk* findVictim(Addr addr, const bool is_secure,
211 std::vector<CacheBlk*>& evict_blks) const override;
212
213 /**
214 * Insert the new block into the cache and update replacement data.
215 *
217 * @param pkt Packet holding the address to update
216 * @param addr Address of the block.
217 * @param is_secure Whether the block is in secure space or not.
218 * @param src_master_ID The source requestor ID.
219 * @param task_ID The new task ID.
218 * @param blk The block to update.
219 */
220 * @param blk The block to update.
221 */
220 void insertBlock(const PacketPtr pkt, CacheBlk *blk) override;
222 void insertBlock(const Addr addr, const bool is_secure,
223 const int src_master_ID, const uint32_t task_ID,
224 CacheBlk *blk) override;
221
222 /**
223 * Generate the tag from the addres. For fully associative this is just the
224 * block address.
225 * @param addr The address to get the tag from.
226 * @return The tag.
227 */
228 Addr extractTag(Addr addr) const override

--- 151 unchanged lines hidden ---
225
226 /**
227 * Generate the tag from the addres. For fully associative this is just the
228 * block address.
229 * @param addr The address to get the tag from.
230 * @return The tag.
231 */
232 Addr extractTag(Addr addr) const override

--- 151 unchanged lines hidden ---