From: Daniel R. Carvalho Date: Wed, 8 May 2019 20:21:06 +0000 (+0200) Subject: mem-ruby: Fix MultiGrainBloomFilter total count calculation X-Git-Tag: v19.0.0.0~746 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5458aa507a3a4510b85bff330e1f239b4f1fec9c;p=gem5.git mem-ruby: Fix MultiGrainBloomFilter total count calculation Previous value was always 0, and was never incrementing. The total count should take into account the value stored in the entry. Change-Id: I93813e3f388198967b30cf11848a8a8c3a7b91f4 Signed-off-by: Daniel R. Carvalho Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18733 Maintainer: Nikos Nikoleris Tested-by: kokoro Reviewed-by: Nikos Nikoleris --- diff --git a/src/mem/ruby/filters/MultiGrainBloomFilter.cc b/src/mem/ruby/filters/MultiGrainBloomFilter.cc index 29af6eb1b..a1f8993c9 100644 --- a/src/mem/ruby/filters/MultiGrainBloomFilter.cc +++ b/src/mem/ruby/filters/MultiGrainBloomFilter.cc @@ -105,7 +105,7 @@ MultiGrainBloomFilter::getTotalCount() } for (int i=0; i < m_page_filter_size; ++i) { - count += m_page_filter[i] = 0; + count += m_page_filter[i]; } return count;