mem-cache: Do not try to compress dataless packets
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Fri, 25 Oct 2019 16:30:10 +0000 (18:30 +0200)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Tue, 29 Oct 2019 21:32:02 +0000 (21:32 +0000)
commit0c5ef2d999d439a0313bb60e42a6fe6133c59038
treeb07d95945bec9d6fe2da445deddc80f22f76dc02
parentcdc4a3cf1496c6c3bd8619ac7970a6090e38d305
mem-cache: Do not try to compress dataless packets

Fix filling blocks so that packets that do not contain data do not
generate a compression attempt. This can happen, for example, with
invalidation responses, which will trigger a packet data access
assertion.

Change-Id: I2a1e7983657f6e5e770b148ab62c9de9ac3986ac
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22164
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/cache/base.cc