summaryrefslogtreecommitdiff
path: root/src/mem/coherent_bus.hh
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2012-10-11 06:38:43 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2012-10-11 06:38:43 -0400
commit43ca8415e8747145cb1a410d4672d4cd2247c695 (patch)
tree079d9c95eb41033870017b84205c625e95febf00 /src/mem/coherent_bus.hh
parent5dba9225f7cdbcef342fd64c70f91b5bbea2a1a1 (diff)
downloadgem5-43ca8415e8747145cb1a410d4672d4cd2247c695.tar.xz
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.
Diffstat (limited to 'src/mem/coherent_bus.hh')
-rw-r--r--src/mem/coherent_bus.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem/coherent_bus.hh b/src/mem/coherent_bus.hh
index 8941d0271..89a759546 100644
--- a/src/mem/coherent_bus.hh
+++ b/src/mem/coherent_bus.hh
@@ -140,7 +140,7 @@ class CoherentBus : public BaseBus
* Get the maximum block size as seen by the bus.
*/
virtual unsigned deviceBlockSize() const
- { return bus.findBlockSize(); }
+ { return bus.deviceBlockSize(); }
};
@@ -211,7 +211,7 @@ class CoherentBus : public BaseBus
// take the max of it. This might need to be changed a bit if we ever
// support multiple block sizes.
virtual unsigned deviceBlockSize() const
- { return bus.findBlockSize(); }
+ { return bus.deviceBlockSize(); }
};