From 7d83cf35e1efd4df90fff4aa5ecb501f66eba364 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Fri, 16 Nov 2007 20:10:33 -0800 Subject: [PATCH] Tweak check for writable block fill. --HG-- extra : convert_revision : c04281bcfc4cd23c7613aeccb21dc74452bcc951 --- src/mem/cache/cache_impl.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.30.2