summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
Diffstat (limited to 'configs')
-rw-r--r--configs/common/CacheConfig.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/configs/common/CacheConfig.py b/configs/common/CacheConfig.py
index 1a2c87828..e4114355f 100644
--- a/configs/common/CacheConfig.py
+++ b/configs/common/CacheConfig.py
@@ -153,6 +153,11 @@ def config_cache(options, system):
else:
system.cpu[i].connectAllPorts(system.membus)
+ # Add a snoop filter to the membus if there are caches above it
+ if (options.l2cache or options.caches) and \
+ (system.membus.snoop_filter == NULL):
+ system.membus.snoop_filter = SnoopFilter()
+
return system
# ExternalSlave provides a "port", but when that port connects to a cache,