[Memory] Preallocate encrypted memory region

(Fixes dashboards up to 12625)
This commit is contained in:
Gliniak 2019-12-10 21:57:33 +01:00 committed by illusion98
parent ca1a2692ab
commit 5358aec284
1 changed files with 6 additions and 0 deletions

View File

@ -184,6 +184,12 @@ bool Memory::Initialize() {
heaps_.physical.AllocFixed(0x1FFF0000, 0x10000, 0x10000,
kMemoryAllocationReserve, kMemoryProtectNoAccess);
// Pre-reserve encrypted part of memory
heaps_.v80000000.AllocFixed(
0x8C000000, 0x03FFFFFF, 0x10000,
kMemoryAllocationReserve | kMemoryAllocationCommit,
kMemoryProtectRead | kMemoryProtectWrite);
// GPU writeback.
// 0xC... is physical, 0x7F... is virtual. We may need to overlay these.
heaps_.vC0000000.AllocFixed(