base.cc (13862:9b6d6541244f) | base.cc (13863:f7391cb38ce7) |
---|---|
1/* 2 * Copyright (c) 2012-2013, 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 --- 1312 unchanged lines hidden (view full) --- 1321 // allocation failed, block not inserted 1322 return nullptr; 1323 } 1324 } 1325 } 1326 1327 // The victim will be replaced by a new entry, so increase the replacement 1328 // counter if a valid block is being replaced | 1/* 2 * Copyright (c) 2012-2013, 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 --- 1312 unchanged lines hidden (view full) --- 1321 // allocation failed, block not inserted 1322 return nullptr; 1323 } 1324 } 1325 } 1326 1327 // The victim will be replaced by a new entry, so increase the replacement 1328 // counter if a valid block is being replaced |
1329 if (victim->isValid()) { 1330 DPRINTF(Cache, "replacement: replacing %#llx (%s) with %#llx " 1331 "(%s): %s\n", regenerateBlkAddr(victim), 1332 victim->isSecure() ? "s" : "ns", 1333 addr, is_secure ? "s" : "ns", 1334 victim->isDirty() ? "writeback" : "clean"); | 1329 if (evict_blks.size() > 0) { 1330 for (const auto& blk : evict_blks) { 1331 if (blk->isValid()) { 1332 DPRINTF(CacheRepl, "Evicting %s (%#llx) to make room for " \ 1333 "%#llx (%s)\n", blk->print(), regenerateBlkAddr(blk), 1334 addr, is_secure); 1335 } 1336 } |
1335 1336 replacements++; 1337 } 1338 1339 // Evict valid blocks associated to this victim block 1340 for (const auto& blk : evict_blks) { 1341 if (blk->isValid()) { 1342 if (blk->wasPrefetched()) { --- 1170 unchanged lines hidden --- | 1337 1338 replacements++; 1339 } 1340 1341 // Evict valid blocks associated to this victim block 1342 for (const auto& blk : evict_blks) { 1343 if (blk->isValid()) { 1344 if (blk->wasPrefetched()) { --- 1170 unchanged lines hidden --- |