From 5458aa507a3a4510b85bff330e1f239b4f1fec9c Mon Sep 17 00:00:00 2001 From: "Daniel R. Carvalho" Date: Wed, 8 May 2019 22:21:06 +0200 Subject: [PATCH] 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 --- src/mem/ruby/filters/MultiGrainBloomFilter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2