noncoherent_cache.cc (13350:247e4108a5e8) | noncoherent_cache.cc (13358:5e1605b47a21) |
---|---|
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 --- 343 unchanged lines hidden (view full) --- 352 PacketPtr pkt = (blk->isDirty() || writebackClean) ? 353 writebackBlk(blk) : nullptr; 354 355 invalidateBlock(blk); 356 357 return pkt; 358} 359 | 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 --- 343 unchanged lines hidden (view full) --- 352 PacketPtr pkt = (blk->isDirty() || writebackClean) ? 353 writebackBlk(blk) : nullptr; 354 355 invalidateBlock(blk); 356 357 return pkt; 358} 359 |
360void 361NoncoherentCache::evictBlock(CacheBlk *blk, PacketList &writebacks) 362{ 363 PacketPtr pkt = evictBlock(blk); 364 if (pkt) { 365 writebacks.push_back(pkt); 366 } 367} 368 | |
369NoncoherentCache* 370NoncoherentCacheParams::create() 371{ 372 assert(tags); 373 assert(replacement_policy); 374 375 return new NoncoherentCache(this); 376} | 360NoncoherentCache* 361NoncoherentCacheParams::create() 362{ 363 assert(tags); 364 assert(replacement_policy); 365 366 return new NoncoherentCache(this); 367} |