base.hh (12730:6c2ea88bf129) base.hh (12754:15c1d281ce1a)
1/*
2 * Copyright (c) 2012-2013, 2015-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

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

654 CacheBlk *handleFill(PacketPtr pkt, CacheBlk *blk,
655 PacketList &writebacks, bool allocate);
656
657 /**
658 * Allocate a new block and perform any necessary writebacks
659 *
660 * Find a victim block and if necessary prepare writebacks for any
661 * existing data. May return nullptr if there are no replaceable
1/*
2 * Copyright (c) 2012-2013, 2015-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

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

654 CacheBlk *handleFill(PacketPtr pkt, CacheBlk *blk,
655 PacketList &writebacks, bool allocate);
656
657 /**
658 * Allocate a new block and perform any necessary writebacks
659 *
660 * Find a victim block and if necessary prepare writebacks for any
661 * existing data. May return nullptr if there are no replaceable
662 * blocks.
662 * blocks. If a replaceable block is found, it inserts the new block in
663 * its place. The new block, however, is not set as valid yet.
663 *
664 *
664 * @param addr Physical address of the new block
665 * @param is_secure Set if the block should be secure
665 * @param pkt Packet holding the address to update
666 * @param writebacks A list of writeback packets for the evicted blocks
667 * @return the allocated block
668 */
666 * @param writebacks A list of writeback packets for the evicted blocks
667 * @return the allocated block
668 */
669 CacheBlk *allocateBlock(Addr addr, bool is_secure, PacketList &writebacks);
669 CacheBlk *allocateBlock(const PacketPtr pkt, PacketList &writebacks);
670 /**
671 * Evict a cache block.
672 *
673 * Performs a writeback if necesssary and invalidates the block
674 *
675 * @param blk Block to invalidate
676 * @return A packet with the writeback, can be nullptr
677 */

--- 484 unchanged lines hidden ---
670 /**
671 * Evict a cache block.
672 *
673 * Performs a writeback if necesssary and invalidates the block
674 *
675 * @param blk Block to invalidate
676 * @return A packet with the writeback, can be nullptr
677 */

--- 484 unchanged lines hidden ---