summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@gmail.com>2007-11-16 20:10:33 -0800
committerSteve Reinhardt <stever@gmail.com>2007-11-16 20:10:33 -0800
commit7d83cf35e1efd4df90fff4aa5ecb501f66eba364 (patch)
tree62ba0b5c1590ea54938370152bc75c7e5f81eca4
parentf03a62008ac3508e5c8cad214e1df407236e75ec (diff)
downloadgem5-7d83cf35e1efd4df90fff4aa5ecb501f66eba364.tar.xz
Tweak check for writable block fill.
--HG-- extra : convert_revision : c04281bcfc4cd23c7613aeccb21dc74452bcc951
-rw-r--r--src/mem/cache/cache_impl.hh3
1 files changed, 2 insertions, 1 deletions
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<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;
}