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>
cxx_header = "mem/cache/compressors/perfect.hh"
chunk_size_bits = 64
- max_compression_ratio = Param.Int(2,
+ max_compression_ratio = Param.Int(Parent.max_compression_ratio,
"Maximum compression ratio allowed")
compression_latency = Param.Cycles(1,
"Number of cycles to perform data compression")