X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmem%2Fcache%2Fnoncoherent_cache.cc;h=9a2a1db9d85a3c412e3d380b31e06eefc0c68dbb;hb=afc30c07f598a8dd45ea4bc458f89d3485c50025;hp=726c32f1c8024f758d0030f2d059585b1cbcab81;hpb=e57d8f2d897bc26aade774e090842367e38e974b;p=gem5.git diff --git a/src/mem/cache/noncoherent_cache.cc b/src/mem/cache/noncoherent_cache.cc index 726c32f1c..9a2a1db9d 100644 --- a/src/mem/cache/noncoherent_cache.cc +++ b/src/mem/cache/noncoherent_cache.cc @@ -243,11 +243,10 @@ NoncoherentCache::functionalAccess(PacketPtr pkt, bool from_cpu_side) void NoncoherentCache::serviceMSHRTargets(MSHR *mshr, const PacketPtr pkt, - CacheBlk *blk, PacketList &writebacks) + CacheBlk *blk) { - MSHR::Target *initial_tgt = mshr->getTarget(); // First offset for critical word first calculations - const int initial_offset = initial_tgt->pkt->getOffset(blkSize); + const int initial_offset = mshr->getTarget()->pkt->getOffset(blkSize); MSHR::TargetList targets = mshr->extractServiceableTargets(pkt); for (auto &target: targets) { @@ -288,7 +287,7 @@ NoncoherentCache::serviceMSHRTargets(MSHR *mshr, const PacketPtr pkt, // Reset the bus additional time as it is now accounted for tgt_pkt->headerDelay = tgt_pkt->payloadDelay = 0; - cpuSidePort.schedTimingResp(tgt_pkt, completion_time, true); + cpuSidePort.schedTimingResp(tgt_pkt, completion_time); break; case MSHR::Target::FromPrefetcher: @@ -357,15 +356,6 @@ NoncoherentCache::evictBlock(CacheBlk *blk) return pkt; } -void -NoncoherentCache::evictBlock(CacheBlk *blk, PacketList &writebacks) -{ - PacketPtr pkt = evictBlock(blk); - if (pkt) { - writebacks.push_back(pkt); - } -} - NoncoherentCache* NoncoherentCacheParams::create() {