From 43ca8415e8747145cb1a410d4672d4cd2247c695 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Thu, 11 Oct 2012 06:38:43 -0400 Subject: Mem: Determine bus block size during initialisation This patch moves the block size computation from findBlockSize to initialisation time, once all the neighbouring ports are connected. There is no need to dynamically update the block size, and the caching of the value effectively avoided that anyhow. This is very similar to what was already in place, just with a slightly leaner implementation. --- src/mem/coherent_bus.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mem/coherent_bus.cc') diff --git a/src/mem/coherent_bus.cc b/src/mem/coherent_bus.cc index b0dedfaf4..98d86f3f0 100644 --- a/src/mem/coherent_bus.cc +++ b/src/mem/coherent_bus.cc @@ -90,6 +90,9 @@ CoherentBus::CoherentBus(const CoherentBusParams *p) void CoherentBus::init() { + // the base class is responsible for determining the block size + BaseBus::init(); + // iterate over our slave ports and determine which of our // neighbouring master ports are snooping and add them as snoopers for (SlavePortConstIter p = slavePorts.begin(); p != slavePorts.end(); -- cgit v1.2.3