From: Adrian Herrera Date: Mon, 18 Nov 2019 10:41:08 +0000 (+0000) Subject: dev-arm: RealView, add support for off-chip memory X-Git-Tag: v20.0.0.0~461 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4a3db400bacb012c5331e6d289325535c1575c45;p=gem5.git dev-arm: RealView, add support for off-chip memory This patch adds support for attaching off-chip memory in "RealView" derived platforms. Change-Id: Id1d430654abe83e76b532c8cf1ce2683a5a1e719 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25644 Reviewed-by: Ciro Santilli Maintainer: Giacomo Travaglini Tested-by: kokoro --- diff --git a/src/dev/arm/RealView.py b/src/dev/arm/RealView.py index 9a90c9eda..25bad06ad 100644 --- a/src/dev/arm/RealView.py +++ b/src/dev/arm/RealView.py @@ -603,6 +603,9 @@ class RealView(Platform): def _on_chip_memory(self): return [] + def _off_chip_memory(self): + return [] + _off_chip_ranges = [] def _attach_memory(self, mem, bus, mem_ports=None): @@ -653,6 +656,7 @@ class RealView(Platform): bridge.ranges = self._off_chip_ranges def attachIO(self, *args, **kwargs): + self._attach_mem(self._off_chip_memory(), *args, **kwargs) self._attach_io(self._off_chip_devices(), *args, **kwargs) def setupBootLoader(self, cur_sys, boot_loader, atags_addr, load_offset):