summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel R. Carvalho <odanrc@yahoo.com.br>2019-05-08 22:21:06 +0200
committerDaniel Carvalho <odanrc@yahoo.com.br>2019-07-06 22:55:32 +0000
commit5458aa507a3a4510b85bff330e1f239b4f1fec9c (patch)
tree949e23f2ac48e3e71661d3eb248a452ccfe5cf89
parent2d1d25f1964653aeed849cb1119feb6c6aaa5b08 (diff)
downloadgem5-5458aa507a3a4510b85bff330e1f239b4f1fec9c.tar.xz
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 <odanrc@yahoo.com.br> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18733 Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
-rw-r--r--src/mem/ruby/filters/MultiGrainBloomFilter.cc2
1 files changed, 1 insertions, 1 deletions
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;