summaryrefslogtreecommitdiff
path: root/configs/example/arm/devices.py
diff options
context:
space:
mode:
authorGabor Dozsa <gabor.dozsa@arm.com>2017-07-05 10:52:08 +0100
committerAndreas Sandberg <andreas.sandberg@arm.com>2017-07-27 15:16:30 +0000
commit37d48eac19b6b2d5f857ff868ec6d1de4ea02536 (patch)
treec5eb5c0b2c25ba78af0412c4405089c6ba3144d8 /configs/example/arm/devices.py
parentacf233bb247e256e0cf447ace74990988dd1f0d2 (diff)
downloadgem5-37d48eac19b6b2d5f857ff868ec6d1de4ea02536.tar.xz
config: Change mem_range attribute naming in ARM SimpleSystem
MemConfig.config() expects memory ranges to be defined in a particular way. This patch changes the naming of the mem_range attribute in SympleSystem to enable use of MemConfig for configuring the memory. Change-Id: I4964c136e53a99c69ff5e086cacb929aa435168d Signed-off-by: Gabor Dozsa <gabor.dozsa@arm.com> Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/4200 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'configs/example/arm/devices.py')
-rw-r--r--configs/example/arm/devices.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/configs/example/arm/devices.py b/configs/example/arm/devices.py
index f7375cd9a..467d2b919 100644
--- a/configs/example/arm/devices.py
+++ b/configs/example/arm/devices.py
@@ -209,13 +209,13 @@ class SimpleSystem(LinuxArmSystem):
mem_range = self.realview._mem_regions[0]
mem_range_size = long(mem_range[1]) - long(mem_range[0])
assert mem_range_size >= long(Addr(mem_size))
- self._mem_range = AddrRange(start=mem_range[0], size=mem_size)
+ self.mem_ranges = [ AddrRange(start=mem_range[0], size=mem_size) ]
self._caches = caches
if self._caches:
- self.iocache = IOCache(addr_ranges=[self._mem_range])
+ self.iocache = IOCache(addr_ranges=[self.mem_ranges[0]])
else:
self.dmabridge = Bridge(delay='50ns',
- ranges=[self._mem_range])
+ ranges=[self.mem_ranges[0]])
self._pci_devices = 0
self._clusters = []