dev-arm: Add VRAM to VExpress_GEM5_Base
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Wed, 13 Jan 2021 14:28:03 +0000 (14:28 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Wed, 10 Feb 2021 09:08:52 +0000 (09:08 +0000)
Change-Id: Ibd3ae59730c6d00a6bd8b129f973b79a565f66e4
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/40973
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/dev/arm/RealView.py

index 8969bc007568b69642cff8cef63ba98119c7aef6..7caa203eb8c5c9bbf89c4bdf3be2e042c1bc4bb9 100644 (file)
@@ -964,7 +964,11 @@ Memory map:
        0x10020000-0x1002ffff: gem5 MHU
 
    0x14000000-0x17ffffff: Reserved (Off-chip, PSRAM, CS1)
-   0x18000000-0x1bffffff: Reserved (Off-chip, Peripherals, CS2)
+
+   0x18000000-0x1bffffff: Off-chip, Peripherals, CS2
+       0x18000000-0x19ffffff: VRAM
+       0x1a000000-0x1bffffff: Reserved
+
    0x1c000000-0x1fffffff: Peripheral block 1 (Off-chip, CS3):
        0x1c010000-0x1c01ffff: realview_io (VE system control regs.)
        0x1c060000-0x1c06ffff: KMI0 (keyboard)
@@ -1171,6 +1175,10 @@ Interrupts:
     flash1 = SimpleMemory(range=AddrRange(0x0c000000, 0x10000000),
                           conf_table_reported=False)
 
+    # VRAM
+    vram = SimpleMemory(range=AddrRange(0x18000000, size='32MB'),
+                        conf_table_reported=False)
+
     def _off_chip_devices(self):
         return [
             self.realview_io,
@@ -1190,6 +1198,7 @@ Interrupts:
     def _off_chip_memory(self):
         return [
             self.flash1,
+            self.vram,
         ]
 
     def __init__(self, **kwargs):