misc: Fix a bunch of minor issues identified by static analysis
Add some missing initialisation, and fix a handful benign resource leaks (including some false positives).
This commit is contained in:
3
src/mem/cache/cache_impl.hh
vendored
3
src/mem/cache/cache_impl.hh
vendored
@@ -917,6 +917,9 @@ Cache<TagStore>::recvAtomic(PacketPtr pkt)
|
||||
if (pkt->cmd == MemCmd::WriteInvalidateReq) {
|
||||
memSidePort->sendAtomic(pkt); // complete writeback
|
||||
if (isTopLevel) {
|
||||
// @todo Static analysis suggests this can actually happen
|
||||
assert(blk);
|
||||
|
||||
// top level caches allocate and write the data
|
||||
assert(blk->isDirty());
|
||||
assert(!blk->isWritable());
|
||||
|
||||
Reference in New Issue
Block a user