mem-cache: Generate error on compression misconfiguration
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Mon, 21 Dec 2020 01:15:23 +0000 (22:15 -0300)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Tue, 22 Dec 2020 16:03:34 +0000 (16:03 +0000)
commit4dc09a9543e8be0a70be7b42b8521509700752a4
treede034fae9e89683bf3cbc4082b00c8e7dab1ac68
parent0badfdb207337ab18e5904f30ab74b6eb48bb312
mem-cache: Generate error on compression misconfiguration

Compressed caches must use the compressed tags, otherwise a
seg fault will be generated. Besides, if no compressor is
assigned; yet compressed tags are used, data is not compressed.

Generate an error for the first case, and a warning for the
second.

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