From ed5c610611fc57365e6f96f4fa8f9de9f0ad9798 Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Tue, 17 Mar 2020 16:55:01 +0000 Subject: [PATCH] dev-arm: Add flash1 memory to VExpress_GEM5 platform Change-Id: I013241ac99fe42cdef437a396732447726beedd0 Signed-off-by: Giacomo Travaglini Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/26833 Reviewed-by: Ciro Santilli Tested-by: kokoro --- src/dev/arm/RealView.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/dev/arm/RealView.py b/src/dev/arm/RealView.py index 93f6e1290..f9b9cb2fd 100644 --- a/src/dev/arm/RealView.py +++ b/src/dev/arm/RealView.py @@ -850,7 +850,7 @@ Memory map: 0x00000000-0x03ffffff: Boot memory (CS0) 0x04000000-0x07ffffff: Reserved 0x08000000-0x0bffffff: NOR FLASH0 (CS0 alias) - 0x0c000000-0x0fffffff: Reserved (Off-chip, CS4) + 0x0c000000-0x0fffffff: NOR FLASH1 (Off-chip, CS4) 0x10000000-0x13ffffff: gem5-specific peripherals (Off-chip, CS5) 0x10000000-0x1000ffff: gem5 energy controller 0x10010000-0x1001ffff: gem5 pseudo-ops @@ -1038,6 +1038,10 @@ Interrupts: interrupt=ArmSPI(num=75)), ] + # NOR flash, flash1 + flash1 = SimpleMemory(range=AddrRange(0x0c000000, 0x10000000), + conf_table_reported=False) + def _off_chip_devices(self): return [ self.realview_io, @@ -1054,6 +1058,11 @@ Interrupts: self.vio[1], ] + self.uart + def _off_chip_memory(self): + return [ + self.flash1, + ] + def __init__(self, **kwargs): super(VExpress_GEM5_Base, self).__init__(**kwargs) self.clock32KHz.voltage_domain = self.io_voltage -- 2.30.2