From 8f68d9d1be78e92c7f0b0381ea4eefe129cf28c5 Mon Sep 17 00:00:00 2001 From: "Daniel R. Carvalho" Date: Thu, 22 Oct 2020 20:30:40 +0200 Subject: [PATCH] mem-cache: Undefine compression ratio of perfect compression Commit c0d67b2263aab6a729368373d9cdef9883870241 assumes that the cache contains a parameter for its compression ratio. This is not the case upstream, so force the user to provide it instead. Change-Id: Ic7b4878bede6b0a34e4adfe7e0aa65a0ee48d1f6 Signed-off-by: Daniel R. Carvalho Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/36495 Reviewed-by: Jason Lowe-Power Reviewed-by: Nikos Nikoleris Maintainer: Jason Lowe-Power Tested-by: kokoro --- src/mem/cache/compressors/Compressors.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mem/cache/compressors/Compressors.py b/src/mem/cache/compressors/Compressors.py index d7dfdab6b..689a42e2e 100644 --- a/src/mem/cache/compressors/Compressors.py +++ b/src/mem/cache/compressors/Compressors.py @@ -125,8 +125,9 @@ class PerfectCompressor(BaseCacheCompressor): cxx_header = "mem/cache/compressors/perfect.hh" chunk_size_bits = 64 - max_compression_ratio = Param.Int(Parent.max_compression_ratio, - "Maximum compression ratio allowed") + + max_compression_ratio = Param.Int("Maximum compression ratio allowed") + compression_latency = Param.Cycles(1, "Number of cycles to perform data compression") decompression_latency = Param.Cycles(1, -- 2.30.2