Tweak check for writable block fill.
--HG-- extra : convert_revision : c04281bcfc4cd23c7613aeccb21dc74452bcc951
This commit is contained in:
3
src/mem/cache/cache_impl.hh
vendored
3
src/mem/cache/cache_impl.hh
vendored
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user