Tweak check for writable block fill.

--HG--
extra : convert_revision : c04281bcfc4cd23c7613aeccb21dc74452bcc951
This commit is contained in:
Steve Reinhardt
2007-11-16 20:10:33 -08:00
parent f03a62008a
commit 7d83cf35e1

View 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;
}