Tweak check for writable block fill.
authorSteve Reinhardt <stever@gmail.com>
Sat, 17 Nov 2007 04:10:33 +0000 (20:10 -0800)
committerSteve Reinhardt <stever@gmail.com>
Sat, 17 Nov 2007 04:10:33 +0000 (20:10 -0800)
--HG--
extra : convert_revision : c04281bcfc4cd23c7613aeccb21dc74452bcc951

src/mem/cache/cache_impl.hh

index 92ff4d12e2f826c30c16b6bfa80b348b6c1ee390..61846e23318d089d267018e56e132eac0b07cb62 100644 (file)
@@ -881,9 +881,10 @@ Cache<TagStore>::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;
     }