From f9cd87811d5421be4b6aa48060b696bb95917b52 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Sun, 15 Dec 2013 15:31:32 -0800 Subject: [PATCH] Some games seem to write to 0x0... damn. --- src/xenia/cpu/xenon_memory.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/xenia/cpu/xenon_memory.cc b/src/xenia/cpu/xenon_memory.cc index b8ba4394b..909653f63 100644 --- a/src/xenia/cpu/xenon_memory.cc +++ b/src/xenia/cpu/xenon_memory.cc @@ -197,9 +197,10 @@ int XenonMemory::Initialize() { XENON_MEMORY_PHYSICAL_HEAP_LOW, XENON_MEMORY_PHYSICAL_HEAP_HIGH); // GPU writeback. + // 0xC... is physical, 0x7F... is virtual. We may need to overlay these. VirtualAlloc( - Translate(0xC0000000 + system_page_size_), - 0x00100000 - system_page_size_, + Translate(0xC0000000), + 0x00100000, MEM_COMMIT, PAGE_READWRITE); return 0;