From cc222aefd81033a77953612802198badbec7f8cf Mon Sep 17 00:00:00 2001 From: Adrian Herrera Date: Fri, 21 Feb 2020 14:23:30 +0000 Subject: [PATCH] dev-arm: Add trusted SRAM memory to VExpress_GEM5 platform This memory is present in the VE RS1 memory map when security is enabled Change-Id: I2e4fb95c2124d6e60b556903acb17fc4b1dba1a3 Signed-off-by: Giacomo Travaglini Reviewed-by: Ciro Santilli Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25984 Tested-by: kokoro --- src/dev/arm/RealView.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dev/arm/RealView.py b/src/dev/arm/RealView.py index b9bb0d89e..fb9173128 100644 --- a/src/dev/arm/RealView.py +++ b/src/dev/arm/RealView.py @@ -974,6 +974,10 @@ Interrupts: flash0 = SimpleMemory(range=AddrRange(0x08000000, size='64MB'), conf_table_reported=False) + # Trusted SRAM + trusted_sram = SimpleMemory(range=AddrRange(0x04000000, size='256kB'), + conf_table_reported=False) + # Platform control device (off-chip) realview_io = RealViewCtrl(proc_id0=0x14000000, proc_id1=0x14000000, idreg=0x02250000, pio_addr=0x1c010000) @@ -997,6 +1001,7 @@ Interrupts: def _on_chip_memory(self): memories = [ self.bootmem, + self.trusted_sram, self.flash0, ] return memories -- 2.30.2