summaryrefslogtreecommitdiff
path: root/src/mem/coherent_xbar.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/coherent_xbar.cc')
-rw-r--r--src/mem/coherent_xbar.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mem/coherent_xbar.cc b/src/mem/coherent_xbar.cc
index 206f94406..cf438bc95 100644
--- a/src/mem/coherent_xbar.cc
+++ b/src/mem/coherent_xbar.cc
@@ -96,9 +96,6 @@ CoherentXBar::CoherentXBar(const CoherentXBarParams *p)
snoopRespPorts.push_back(new SnoopRespPort(*bp, *this));
}
- if (snoopFilter)
- snoopFilter->setSlavePorts(slavePorts);
-
clearPortCache();
}
@@ -133,6 +130,11 @@ CoherentXBar::init()
if (snoopPorts.empty())
warn("CoherentXBar %s has no snooping ports attached!\n", name());
+
+ // inform the snoop filter about the slave ports so it can create
+ // its own internal representation
+ if (snoopFilter)
+ snoopFilter->setSlavePorts(slavePorts);
}
bool