dev-arm: Add trusted SRAM memory to VExpress_GEM5 platform
authorAdrian Herrera <adrian.herrera@arm.com>
Fri, 21 Feb 2020 14:23:30 +0000 (14:23 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Mon, 2 Mar 2020 10:06:30 +0000 (10:06 +0000)
This memory is present in the VE RS1 memory map when security is enabled

Change-Id: I2e4fb95c2124d6e60b556903acb17fc4b1dba1a3
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Ciro Santilli <ciro.santilli@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25984
Tested-by: kokoro <noreply+kokoro@google.com>
src/dev/arm/RealView.py

index b9bb0d89e3547728a97d9471376de659f7b25ffa..fb917312864e9a51af57032437ef4d685441de09 100644 (file)
@@ -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