base.hh (13419:aaadcfae091a) base.hh (13752:135bb759ee9c)
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/cache_blk.hh"
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/cache_blk.hh"
61#include "mem/packet.hh"
61#include "params/BaseTags.hh"
62#include "sim/clocked_object.hh"
63
64class System;
65class IndexingPolicy;
66class ReplaceableEntry;
67
68/**

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

300 * @param addr The address to get the tag from.
301 * @return The tag of the address.
302 */
303 virtual Addr extractTag(const Addr addr) const;
304
305 /**
306 * Insert the new block into the cache and update stats.
307 *
62#include "params/BaseTags.hh"
63#include "sim/clocked_object.hh"
64
65class System;
66class IndexingPolicy;
67class ReplaceableEntry;
68
69/**

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

301 * @param addr The address to get the tag from.
302 * @return The tag of the address.
303 */
304 virtual Addr extractTag(const Addr addr) const;
305
306 /**
307 * Insert the new block into the cache and update stats.
308 *
308 * @param addr Address of the block.
309 * @param is_secure Whether the block is in secure space or not.
310 * @param src_master_ID The source requestor ID.
311 * @param task_ID The new task ID.
309 * @param pkt Packet holding the address to update
312 * @param blk The block to update.
313 */
310 * @param blk The block to update.
311 */
314 virtual void insertBlock(const Addr addr, const bool is_secure,
315 const int src_master_ID, const uint32_t task_ID,
316 CacheBlk *blk);
312 virtual void insertBlock(const PacketPtr pkt, CacheBlk *blk);
317
318 /**
319 * Regenerate the block address.
320 *
321 * @param block The block.
322 * @return the block address.
323 */
324 virtual Addr regenerateBlkAddr(const CacheBlk* blk) const = 0;

--- 55 unchanged lines hidden ---
313
314 /**
315 * Regenerate the block address.
316 *
317 * @param block The block.
318 * @return the block address.
319 */
320 virtual Addr regenerateBlkAddr(const CacheBlk* blk) const = 0;

--- 55 unchanged lines hidden ---