mem-cache: Add encoding bits to the data of multi compressors
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Wed, 10 Jun 2020 15:00:42 +0000 (17:00 +0200)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Mon, 31 Aug 2020 17:45:43 +0000 (17:45 +0000)
commit35f77329e8f19ee050b1710c650147cb317931b7
tree5e14983dffc7fcf54b1a600fc6a14625a006201a
parentde94a29f85f2296b4e71b12b83037242adce2ac2
mem-cache: Add encoding bits to the data of multi compressors

When compressing using a multi-compressor, one must be able to
identify which sub-compressor should be used to decompress data.
This can be achieved by either adding encoding bits to block's
tag or data entry.

It was previously assumed that these encoding bits would be added
to the tag, but now make it a parameter that defaults to the data
entry.

Change-Id: Id322425e7a6ad59cb2ec7a4167a43de4c55c482c
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/33380
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/compressors/Compressors.py
src/mem/cache/compressors/multi.cc
src/mem/cache/compressors/multi.hh