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/noncoherent_bus.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mem/noncoherent_bus.hh') diff --git a/src/mem/noncoherent_bus.hh b/src/mem/noncoherent_bus.hh index e8c1ab57a..16cf7deda 100644 --- a/src/mem/noncoherent_bus.hh +++ b/src/mem/noncoherent_bus.hh @@ -134,7 +134,7 @@ class NoncoherentBus : public BaseBus * Get the maximum block size as seen by the bus. */ virtual unsigned deviceBlockSize() const - { return bus.findBlockSize(); } + { return bus.deviceBlockSize(); } }; @@ -179,7 +179,7 @@ class NoncoherentBus : public BaseBus * Get the maximum block size as seen by the bus. */ virtual unsigned deviceBlockSize() const - { return bus.findBlockSize(); } + { return bus.deviceBlockSize(); } }; -- cgit v1.2.3