diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mem/cache/base.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/cache/base.cc b/src/mem/cache/base.cc index fcf03741c..ebfb09275 100644 --- a/src/mem/cache/base.cc +++ b/src/mem/cache/base.cc @@ -1413,7 +1413,7 @@ BaseCache::allocateBlock(const PacketPtr pkt, PacketList &writebacks) // compressor is used, the compression/decompression methods are called to // calculate the amount of extra cycles needed to read or write compressed // blocks. - if (compressor) { + if (compressor && pkt->hasData()) { compressor->compress(pkt->getConstPtr<uint64_t>(), compression_lat, decompression_lat, blk_size_bits); } |