mem-cache: Undefine compression ratio of perfect compression
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Thu, 22 Oct 2020 18:30:40 +0000 (20:30 +0200)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Fri, 23 Oct 2020 21:49:11 +0000 (21:49 +0000)
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 <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/36495
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/cache/compressors/Compressors.py

index d7dfdab6b944fe4720f3eda5e3f1afc81a307a25..689a42e2e97df1d0d85fa52588cc4331c7955d2d 100644 (file)
@@ -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,