cache.cc (12599:43ade6cf92b7) | cache.cc (12600:e670dd17c8cf) |
---|---|
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{ | 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 |
|
1819 CacheBlk *blk = tags->findVictim(addr); 1820 1821 // It is valid to return nullptr if there is no victim 1822 if (!blk) 1823 return nullptr; 1824 1825 if (blk->isValid()) { 1826 Addr repl_addr = tags->regenerateBlkAddr(blk); --- 970 unchanged lines hidden (view full) --- 2797 : BaseCache::CacheSlavePort(_name, _cache, _label), cache(_cache) 2798{ 2799} 2800 2801Cache* 2802CacheParams::create() 2803{ 2804 assert(tags); | 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); |
|
2805 2806 return new Cache(this); 2807} 2808/////////////// 2809// 2810// MemSidePort 2811// 2812/////////////// --- 75 unchanged lines hidden --- | 2807 2808 return new Cache(this); 2809} 2810/////////////// 2811// 2812// MemSidePort 2813// 2814/////////////// --- 75 unchanged lines hidden --- |