From: Steve Reinhardt Date: Sat, 17 Nov 2007 04:10:33 +0000 (-0800) Subject: Tweak check for writable block fill. X-Git-Tag: m5_2.0_beta5~77^2~6 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7d83cf35e1efd4df90fff4aa5ecb501f66eba364;p=gem5.git Tweak check for writable block fill. --HG-- extra : convert_revision : c04281bcfc4cd23c7613aeccb21dc74452bcc951 --- diff --git a/src/mem/cache/cache_impl.hh b/src/mem/cache/cache_impl.hh index 92ff4d12e..61846e233 100644 --- a/src/mem/cache/cache_impl.hh +++ b/src/mem/cache/cache_impl.hh @@ -881,9 +881,10 @@ Cache::handleFill(PacketPtr pkt, BlkType *blk, assert(pkt->isRead() || blk->isValid()); } - if (pkt->needsExclusive() || !pkt->sharedAsserted()) { + if (!pkt->sharedAsserted()) { blk->status = BlkValid | BlkWritable; } else { + assert(!pkt->needsExclusive()); blk->status = BlkValid; }