Quentin Forcioli has submitted this change. (
https://gem5-review.googlesource.com/c/public/gem5/+/49989 )
Change subject: dev-arm: Added trusted DRAM to vexpress Realview
......................................................................
dev-arm: Added trusted DRAM to vexpress Realview
Added the 32MB of trusted DRAM to the VExpress_GEM5_Base Realview.
This trusted DRAM is however not protected against unsecure access.
This commit is part of series of commit to enable booting OPTEE on gem5.
Change-Id: Icbbaec8488dd72e1cbe70015a7f7904de35b38bf
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/49989
Reviewed-by: Giacomo Travaglini <giacomo.travagl...@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travagl...@arm.com>
Tested-by: kokoro <noreply+kok...@google.com>
---
M src/dev/arm/RealView.py
1 file changed, 26 insertions(+), 2 deletions(-)
Approvals:
Giacomo Travaglini: Looks good to me, approved; Looks good to me, approved
kokoro: Regressions pass
diff --git a/src/dev/arm/RealView.py b/src/dev/arm/RealView.py
index 0ba929b..837fe7e 100644
--- a/src/dev/arm/RealView.py
+++ b/src/dev/arm/RealView.py
@@ -977,7 +977,9 @@
Memory map:
0x00000000-0x03ffffff: Boot memory (CS0)
- 0x04000000-0x07ffffff: Reserved
+ 0x04000000-0x07ffffff: Trusted Memory/Reserved
+ 0x04000000-0x0403FFFF: 256kB Trusted SRAM
+ 0x06000000-0x07ffffff: 32MB Trusted DRAM
0x08000000-0x0bffffff: NOR FLASH0 (CS0 alias)
0x0c000000-0x0fffffff: NOR FLASH1 (Off-chip, CS4)
0x10000000-0x13ffffff: gem5-specific peripherals (Off-chip, CS5)
@@ -1094,7 +1096,10 @@
# Trusted SRAM
trusted_sram = SimpleMemory(range=AddrRange(0x04000000, size='256KiB'),
conf_table_reported=False)
-
+ # Trusted DRAM
+ # TODO: preventing access from unsecure world to the trusted RAM
+ trusted_dram=SimpleMemory(range=AddrRange(0x06000000, size='32MB'),
+ conf_table_reported=False)
# Non-Trusted SRAM
non_trusted_sram = MmioSRAM(range=AddrRange(0x2e000000, size=0x8000),
conf_table_reported=False)
@@ -1145,6 +1150,7 @@
memories = [
self.bootmem,
self.trusted_sram,
+ self.trusted_dram,
self.non_trusted_sram,
self.flash0,
]
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/49989
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Icbbaec8488dd72e1cbe70015a7f7904de35b38bf
Gerrit-Change-Number: 49989
Gerrit-PatchSet: 6
Gerrit-Owner: Quentin Forcioli <quentin.forci...@telecom-paris.fr>
Gerrit-Reviewer: Andreas Sandberg <andreas.sandb...@arm.com>
Gerrit-Reviewer: Giacomo Travaglini <giacomo.travagl...@arm.com>
Gerrit-Reviewer: Quentin Forcioli <quentin.forci...@telecom-paris.fr>
Gerrit-Reviewer: kokoro <noreply+kok...@google.com>
Gerrit-CC: Jason Lowe-Power <power...@gmail.com>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s