diff options
Diffstat (limited to 'src/mem/cache/base.hh')
-rw-r--r-- | src/mem/cache/base.hh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mem/cache/base.hh b/src/mem/cache/base.hh index 2bac2d30f..aaf0ea691 100644 --- a/src/mem/cache/base.hh +++ b/src/mem/cache/base.hh @@ -262,6 +262,16 @@ class BaseCache : public MemObject */ virtual bool isDirty() const = 0; + /** + * Determine if an address is in the ranges covered by this + * cache. This is useful to filter snoops. + * + * @param addr Address to check against + * + * @return If the address in question is in range + */ + bool inRange(Addr addr) const; + /** Block size of this cache */ const unsigned blkSize; |