From c0d67b2263aab6a729368373d9cdef9883870241 Mon Sep 17 00:00:00 2001 From: "Daniel R. Carvalho" Date: Tue, 5 Nov 2019 13:32:46 +0100 Subject: [PATCH] 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 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/33387 Reviewed-by: Nikos Nikoleris Maintainer: Nikos Nikoleris Tested-by: kokoro --- src/mem/cache/compressors/Compressors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mem/cache/compressors/Compressors.py b/src/mem/cache/compressors/Compressors.py index 2497e82e0..d7dfdab6b 100644 --- a/src/mem/cache/compressors/Compressors.py +++ b/src/mem/cache/compressors/Compressors.py @@ -125,7 +125,7 @@ class PerfectCompressor(BaseCacheCompressor): 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") -- 2.30.2