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 <[email protected]>
Maintainer: Giacomo Travaglini <[email protected]>
Tested-by: kokoro <[email protected]>
---
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 <[email protected]>
Gerrit-Reviewer: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: Giacomo Travaglini <[email protected]>
Gerrit-Reviewer: Quentin Forcioli <[email protected]>
Gerrit-Reviewer: kokoro <[email protected]>
Gerrit-CC: Jason Lowe-Power <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s