mem-cache: Add compression and decompression calls
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Tue, 19 Jun 2018 15:08:35 +0000 (17:08 +0200)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Wed, 8 May 2019 17:41:09 +0000 (17:41 +0000)
commita39af1f0ac6d324b4c206d4db18c39ea557bb931
treed93356d5b90dbc8ff51c5f051ea9fa68356e8b95
parent77a49860f98a86f467bae242e6c52f6b7150631c
mem-cache: Add compression and decompression calls

Add a compressor to the base cache class and compress within
block allocation and decompress on writebacks.

This change does not implement data expansion (fat writes) yet,
nor it adds the compression latency to the block write time.

Change-Id: Ie36db65f7487c9b05ec4aedebc2c7651b4cb4821
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/11410
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
src/mem/cache/Cache.py
src/mem/cache/base.cc
src/mem/cache/base.hh
src/mem/cache/cache.cc
src/mem/cache/compressors/base.cc
src/mem/cache/compressors/base.hh
src/mem/cache/tags/compressed_tags.cc
src/mem/cache/tags/compressed_tags.hh