mem-cache: Factor out CPack's dictionary functionality
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Mon, 15 Jul 2019 14:21:24 +0000 (16:21 +0200)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Tue, 29 Oct 2019 21:32:02 +0000 (21:32 +0000)
commit7ce9fe0af9f04a6f94bec9542af025a043c46b35
tree39ee68ae2ad98e3bf1d419686c5721d2715c5adf
parent70dc35a659d024a4362c7b3f08887f04285b34f9
mem-cache: Factor out CPack's dictionary functionality

Factor out dictionary functionality of CPack, so that it can be
used easily for other compressors.

As a side effect, create an addToDictionary function to allow
subclasses to chose how to handle insertion.

Change-Id: I02fae4e98b02db5a40467ec470b71020d5e867cb
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/21147
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
src/mem/cache/compressors/Compressors.py
src/mem/cache/compressors/SConscript
src/mem/cache/compressors/cpack.cc
src/mem/cache/compressors/cpack.hh
src/mem/cache/compressors/dictionary_compressor.cc [new file with mode: 0644]
src/mem/cache/compressors/dictionary_compressor.hh [new file with mode: 0644]