diff options
Diffstat (limited to 'src/mem/ruby/filters/AbstractBloomFilter.hh')
-rw-r--r-- | src/mem/ruby/filters/AbstractBloomFilter.hh | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/mem/ruby/filters/AbstractBloomFilter.hh b/src/mem/ruby/filters/AbstractBloomFilter.hh index a9826968a..b2bfa4d3e 100644 --- a/src/mem/ruby/filters/AbstractBloomFilter.hh +++ b/src/mem/ruby/filters/AbstractBloomFilter.hh @@ -36,10 +36,12 @@ #include "base/intmath.hh" #include "base/types.hh" -#include "params/AbstractBloomFilter.hh" +#include "params/BloomFilterBase.hh" #include "sim/sim_object.hh" -class AbstractBloomFilter : public SimObject +namespace BloomFilter { + +class Base : public SimObject { protected: /** Number of LSB bits to ignore from the the addresses. */ @@ -58,13 +60,13 @@ class AbstractBloomFilter : public SimObject /** * Create and clear the filter. */ - AbstractBloomFilter(const AbstractBloomFilterParams* p) + Base(const BloomFilterBaseParams* p) : SimObject(p), offsetBits(p->offset_bits), filter(p->size), sizeBits(floorLog2(p->size)), setThreshold(p->threshold) { clear(); } - virtual ~AbstractBloomFilter() {}; + virtual ~Base() {}; /** * Clear the filter by resetting all values. @@ -83,7 +85,7 @@ class AbstractBloomFilter : public SimObject * @param other The other bloom filter to merge with. */ virtual void - merge(const AbstractBloomFilter* other) + merge(const Base* other) { assert(filter.size() == other->filter.size()); for (int i = 0; i < filter.size(); ++i){ @@ -144,4 +146,6 @@ class AbstractBloomFilter : public SimObject } }; +} // namespace BloomFilter + #endif // __MEM_RUBY_FILTERS_ABSTRACTBLOOMFILTER_HH__ |