diff options
Diffstat (limited to 'src/mem/cache/base.cc')
-rw-r--r-- | src/mem/cache/base.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mem/cache/base.cc b/src/mem/cache/base.cc index a2443eaad..c2068496c 100644 --- a/src/mem/cache/base.cc +++ b/src/mem/cache/base.cc @@ -153,6 +153,17 @@ BaseCache::getSlavePort(const std::string &if_name, PortID idx) } } +bool +BaseCache::inRange(Addr addr) const +{ + for (const auto& r : addrRanges) { + if (r.contains(addr)) { + return true; + } + } + return false; +} + void BaseCache::regStats() { |