Mem: Determine bus block size during initialisation
authorAndreas Hansson <andreas.hansson@arm.com>
Thu, 11 Oct 2012 10:38:43 +0000 (06:38 -0400)
committerAndreas Hansson <andreas.hansson@arm.com>
Thu, 11 Oct 2012 10:38:43 +0000 (06:38 -0400)
commit43ca8415e8747145cb1a410d4672d4cd2247c695
tree079d9c95eb41033870017b84205c625e95febf00
parent5dba9225f7cdbcef342fd64c70f91b5bbea2a1a1
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/bus.cc
src/mem/bus.hh
src/mem/coherent_bus.cc
src/mem/coherent_bus.hh
src/mem/noncoherent_bus.hh