From 1ac203a95821bed48540b2c62bf52d02ab993cdc Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Wed, 27 Jun 2018 19:16:57 +0300 Subject: [PATCH] Funny workaround --- rpcs3/Emu/Memory/vm.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rpcs3/Emu/Memory/vm.cpp b/rpcs3/Emu/Memory/vm.cpp index 9650d02a9d..94b50827c9 100644 --- a/rpcs3/Emu/Memory/vm.cpp +++ b/rpcs3/Emu/Memory/vm.cpp @@ -503,6 +503,13 @@ namespace vm // Allocate compressed reservation info area (avoid SPU MMIO area) if (addr != 0xe0000000) { + // Beginning of the address space + if (addr == 0x10000) + { + utils::memory_commit(g_reservations, 0x1000); + utils::memory_commit(g_reservations2, 0x1000); + } + utils::memory_commit(g_reservations + addr / 16, size / 16); utils::memory_commit(g_reservations2 + addr / 16, size / 16); } @@ -514,6 +521,10 @@ namespace vm utils::memory_commit(g_reservations + addr / 16 + i * 0x10000, 0x4000); utils::memory_commit(g_reservations2 + addr / 16 + i * 0x10000, 0x4000); } + + // End of the address space + utils::memory_commit(g_reservations + 0xfff0000, 0x10000); + utils::memory_commit(g_reservations2 + 0xfff0000, 0x10000); } }