summaryrefslogtreecommitdiff
path: root/tests/configs/base_config.py
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2013-01-07 13:05:38 -0500
committerAndreas Hansson <andreas.hansson@arm.com>2013-01-07 13:05:38 -0500
commite65de3f5ca1d1a91265d09b1950a2d69c620631b (patch)
tree032c2483fde6e6c79e79495862f7ee5dd490ffd9 /tests/configs/base_config.py
parent15a979c6be704a4bb083b64148d1a25d7fc4e682 (diff)
downloadgem5-e65de3f5ca1d1a91265d09b1950a2d69c620631b.tar.xz
config: Do not use hardcoded physmem in fs script
This patch generalises the address range resolution for the I/O cache and I/O bridge such that they do not assume a single memory. The patch involves adding a parameter to the system which is then defined based on the memories that are to be visible from the I/O subsystem, whether behind a cache or a bridge. The change is needed to allow interleaved memory controllers in the system.
Diffstat (limited to 'tests/configs/base_config.py')
-rw-r--r--tests/configs/base_config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/configs/base_config.py b/tests/configs/base_config.py
index 3efbe46fb..945bcb495 100644
--- a/tests/configs/base_config.py
+++ b/tests/configs/base_config.py
@@ -147,7 +147,7 @@ class BaseFSSystem(BaseSystem):
BaseSystem.init_system(self, system)
#create the iocache
- system.iocache = IOCache(clock='1GHz', addr_ranges=[system.physmem.range])
+ system.iocache = IOCache(clock='1GHz', addr_ranges=system.mem_ranges)
system.iocache.cpu_side = system.iobus.master
system.iocache.mem_side = system.membus.slave