1/*
2 * Copyright (c) 2012-2013, 2018-2019 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

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

1314BaseCache::allocateBlock(const PacketPtr pkt, PacketList &writebacks)
1315{
1316 // Get address
1317 const Addr addr = pkt->getAddr();
1318
1319 // Get secure bit
1320 const bool is_secure = pkt->isSecure();
1321
1322 // @todo Compress and get compression related data
1323 std::size_t blk_size_bits = blkSize*8;
1324
1325 // Find replacement victim
1326 std::vector<CacheBlk*> evict_blks;
1324 CacheBlk *victim = tags->findVictim(addr, is_secure, evict_blks);
1327 CacheBlk *victim = tags->findVictim(addr, is_secure, blk_size_bits,
1328 evict_blks);
1329
1330 // It is valid to return nullptr if there is no victim
1331 if (!victim)
1332 return nullptr;
1333
1334 // Print victim block's information
1335 DPRINTF(CacheRepl, "Replacement victim: %s\n", victim->print());
1336

--- 1206 unchanged lines hidden ---