1/* 2 * Copyright (c) 2012-2014,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 --- 44 unchanged lines hidden (view full) --- 53#include <functional> 54#include <string> 55 56#include "base/callback.hh" 57#include "base/logging.hh" 58#include "base/statistics.hh" 59#include "base/types.hh" 60#include "mem/cache/blk.hh" |
61#include "params/BaseTags.hh" 62#include "sim/clocked_object.hh" 63 64class BaseCache; 65class ReplaceableEntry; 66 67/** 68 * A common base class of Cache tagstore objects. --- 210 unchanged lines hidden (view full) --- 279 280 virtual CacheBlk* accessBlock(Addr addr, bool is_secure, Cycles &lat) = 0; 281 282 virtual Addr extractTag(Addr addr) const = 0; 283 284 /** 285 * Insert the new block into the cache and update stats. 286 * |
287 * @param addr Address of the block. 288 * @param is_secure Whether the block is in secure space or not. 289 * @param src_master_ID The source requestor ID. 290 * @param task_ID The new task ID. |
291 * @param blk The block to update. 292 */ |
293 virtual void insertBlock(const Addr addr, const bool is_secure, 294 const int src_master_ID, const uint32_t task_ID, 295 CacheBlk *blk); |
296 297 /** 298 * Regenerate the block address. 299 * 300 * @param block The block. 301 * @return the block address. 302 */ 303 virtual Addr regenerateBlkAddr(const CacheBlk* blk) const = 0; --- 55 unchanged lines hidden --- |