From 873ca617300d335f13db9ae9c573ce0d99ba8f5c Mon Sep 17 00:00:00 2001 From: Adrian Herrera Date: Fri, 21 Feb 2020 11:05:28 +0000 Subject: [PATCH] dev-arm: Add flash0 memory to VExpress_GEM5 platform This memory is present in the VE RS1 memory map Change-Id: Ia00c802f137d8a82c93b984f4043ba9f7fd8027a Signed-off-by: Giacomo Travaglini Reviewed-by: Ciro Santilli Reviewed-by: Adrian Herrera Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25983 Tested-by: kokoro --- src/dev/arm/RealView.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/dev/arm/RealView.py b/src/dev/arm/RealView.py index 039df101d..b9bb0d89e 100644 --- a/src/dev/arm/RealView.py +++ b/src/dev/arm/RealView.py @@ -879,7 +879,7 @@ References: Memory map: 0x00000000-0x03ffffff: Boot memory (CS0) 0x04000000-0x07ffffff: Reserved - 0x08000000-0x0bffffff: Reserved (CS0 alias) + 0x08000000-0x0bffffff: NOR FLASH0 (CS0 alias) 0x0c000000-0x0fffffff: Reserved (Off-chip, CS4) 0x10000000-0x13ffffff: gem5-specific peripherals (Off-chip, CS5) 0x10000000-0x1000ffff: gem5 energy controller @@ -970,6 +970,10 @@ Interrupts: bootmem = SimpleMemory(range=AddrRange(0, size='64MB'), conf_table_reported=False) + # NOR flash, flash0 + flash0 = SimpleMemory(range=AddrRange(0x08000000, size='64MB'), + conf_table_reported=False) + # Platform control device (off-chip) realview_io = RealViewCtrl(proc_id0=0x14000000, proc_id1=0x14000000, idreg=0x02250000, pio_addr=0x1c010000) @@ -993,6 +997,7 @@ Interrupts: def _on_chip_memory(self): memories = [ self.bootmem, + self.flash0, ] return memories -- 2.30.2