diff options
author | Steve Reinhardt <stever@gmail.com> | 2007-11-16 20:10:33 -0800 |
---|---|---|
committer | Steve Reinhardt <stever@gmail.com> | 2007-11-16 20:10:33 -0800 |
commit | 7d83cf35e1efd4df90fff4aa5ecb501f66eba364 (patch) | |
tree | 62ba0b5c1590ea54938370152bc75c7e5f81eca4 /src/mem/cache/cache_impl.hh | |
parent | f03a62008ac3508e5c8cad214e1df407236e75ec (diff) | |
download | gem5-7d83cf35e1efd4df90fff4aa5ecb501f66eba364.tar.xz |
Tweak check for writable block fill.
--HG--
extra : convert_revision : c04281bcfc4cd23c7613aeccb21dc74452bcc951
Diffstat (limited to 'src/mem/cache/cache_impl.hh')
-rw-r--r-- | src/mem/cache/cache_impl.hh | 3 |
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; } |