base.cc (13352:75647326f19b) | base.cc (13358:5e1605b47a21) |
---|---|
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 --- 1296 unchanged lines hidden (view full) --- 1305void 1306BaseCache::invalidateBlock(CacheBlk *blk) 1307{ 1308 if (blk != tempBlock) 1309 tags->invalidate(blk); 1310 blk->invalidate(); 1311} 1312 | 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 --- 1296 unchanged lines hidden (view full) --- 1305void 1306BaseCache::invalidateBlock(CacheBlk *blk) 1307{ 1308 if (blk != tempBlock) 1309 tags->invalidate(blk); 1310 blk->invalidate(); 1311} 1312 |
1313void 1314BaseCache::evictBlock(CacheBlk *blk, PacketList &writebacks) 1315{ 1316 PacketPtr pkt = evictBlock(blk); 1317 if (pkt) { 1318 writebacks.push_back(pkt); 1319 } 1320} 1321 |
|
1313PacketPtr 1314BaseCache::writebackBlk(CacheBlk *blk) 1315{ 1316 chatty_assert(!isReadOnly || writebackClean, 1317 "Writeback from read-only cache"); 1318 assert(blk && blk->isValid() && (blk->isDirty() || writebackClean)); 1319 1320 writebacks[Request::wbMasterId]++; --- 1114 unchanged lines hidden --- | 1322PacketPtr 1323BaseCache::writebackBlk(CacheBlk *blk) 1324{ 1325 chatty_assert(!isReadOnly || writebackClean, 1326 "Writeback from read-only cache"); 1327 assert(blk && blk->isValid() && (blk->isDirty() || writebackClean)); 1328 1329 writebacks[Request::wbMasterId]++; --- 1114 unchanged lines hidden --- |