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 "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 * |
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. |
220 * @param blk The block to update. 221 */ |
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; |
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 --- |