mem-cache: Use cache's max CR on perfect compressor
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Tue, 5 Nov 2019 12:32:46 +0000 (13:32 +0100)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Mon, 31 Aug 2020 17:45:43 +0000 (17:45 +0000)
commitc0d67b2263aab6a729368373d9cdef9883870241
tree64269c197e2e14ceaf04b3fb29a1ba946027c453
parent8626fe101ded3e08d0f97c5e1ce74f3165783f76
mem-cache: Use cache's max CR on perfect compressor

Use cache's max_compression_ratio to setup the max_compression_ratio
of the PerfectCompressor.

Change-Id: Ib44aa61975fb2cc52f27f64a86c9df9c5531aa1a
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/33387
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