dev-arm: RealView, add support for off-chip memory
authorAdrian Herrera <adrian.herrera@arm.com>
Mon, 18 Nov 2019 10:41:08 +0000 (10:41 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Tue, 25 Feb 2020 10:58:47 +0000 (10:58 +0000)
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 <ciro.santilli@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/dev/arm/RealView.py

index 9a90c9eda6e2c768aa280298410304030b4585b3..25bad06ad7e169b0264a51823660df401d646bef 100644 (file)
@@ -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):