1/* 2 * Copyright (c) 2010-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 --- 1802 unchanged lines hidden (view full) --- 1811 } 1812 1813 return true; 1814} 1815 1816CacheBlk* 1817Cache::allocateBlock(Addr addr, bool is_secure, PacketList &writebacks) 1818{ |
1819 // Find replacement victim |
1820 CacheBlk *blk = tags->findVictim(addr); 1821 1822 // It is valid to return nullptr if there is no victim 1823 if (!blk) 1824 return nullptr; 1825 1826 if (blk->isValid()) { 1827 Addr repl_addr = tags->regenerateBlkAddr(blk); --- 970 unchanged lines hidden (view full) --- 2798 : BaseCache::CacheSlavePort(_name, _cache, _label), cache(_cache) 2799{ 2800} 2801 2802Cache* 2803CacheParams::create() 2804{ 2805 assert(tags); |
2806 assert(replacement_policy); |
2807 2808 return new Cache(this); 2809} 2810/////////////// 2811// 2812// MemSidePort 2813// 2814/////////////// --- 75 unchanged lines hidden --- |