mem-cache: Add co-allocation function to compressed tags
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Tue, 19 Jun 2018 15:31:26 +0000 (17:31 +0200)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Wed, 8 May 2019 17:41:09 +0000 (17:41 +0000)
commit273aacfe48e45bc3b73d91f5d4639ed8182fcb0c
treee3d5bac6bb758fb79e49b8db9f201b49428c90c1
parenta39af1f0ac6d324b4c206d4db18c39ea557bb931
mem-cache: Add co-allocation function to compressed tags

Implement a co-allocation function in compressed tags, so
that compressed blocks can be co-allocated in a superblock.
Co-allocation is possible when compression ratio (CR) blocks
that share a superblock tag can be compressed to up to (100/CR)%
of their size.

Change-Id: I937cc1fcbb488e70309cb5478c12db65f1b4b23f
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/11411
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
src/mem/cache/tags/compressed_tags.cc
src/mem/cache/tags/compressed_tags.hh