summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mem/cache/base.cc3
-rw-r--r--src/mem/cache/cache.cc1
2 files changed, 1 insertions, 3 deletions
diff --git a/src/mem/cache/base.cc b/src/mem/cache/base.cc
index e6315cf04..604aab621 100644
--- a/src/mem/cache/base.cc
+++ b/src/mem/cache/base.cc
@@ -1136,14 +1136,13 @@ BaseCache::handleFill(PacketPtr pkt, CacheBlk *blk, PacketList &writebacks,
} else {
// existing block... probably an upgrade
assert(blk->tag == tags->extractTag(addr));
+ assert(blk->isSecure() == is_secure);
// either we're getting new data or the block should already be valid
assert(pkt->hasData() || blk->isValid());
// don't clear block status... if block is already dirty we
// don't want to lose that
}
- if (is_secure)
- blk->status |= BlkSecure;
blk->status |= BlkValid | BlkReadable;
// sanity check for whole-line writes, which should always be
diff --git a/src/mem/cache/cache.cc b/src/mem/cache/cache.cc
index 5034ca521..9177ebea8 100644
--- a/src/mem/cache/cache.cc
+++ b/src/mem/cache/cache.cc
@@ -887,7 +887,6 @@ Cache::cleanEvictBlk(CacheBlk *blk)
return pkt;
}
-
/////////////////////////////////////////////////////
//
// Snoop path: requests coming in from the memory side