dev-arm: default _on_chip_memory on RealView
authorAdrian Herrera <adrian.herrera@arm.com>
Mon, 25 Nov 2019 15:09:22 +0000 (15:09 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Tue, 25 Feb 2020 10:58:47 +0000 (10:58 +0000)
The _on_chip_memory member function is utilised at RealView level, but
it does not provide a default implementation. This assumes all platforms
extending RealView have on-chip memory. This patch provides a default
implementation for safeness.

Change-Id: Iaaa2bee7a85653ee97bfa95b50047eb350a88b58
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25643
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 8b03a1dfaeed01aa1392277c8c0bc8d2f1a039ea..9a90c9eda6e2c768aa280298410304030b4585b3 100644 (file)
@@ -600,6 +600,9 @@ class RealView(Platform):
     def _off_chip_devices(self):
         return []
 
+    def _on_chip_memory(self):
+        return []
+
     _off_chip_ranges = []
 
     def _attach_memory(self, mem, bus, mem_ports=None):