summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/ldr
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-03-21 16:39:55 +0100
committerLioncash <mathew1800@gmail.com>2019-03-21 16:43:35 +0100
commit18918f5f2fba9ca1ad2f34730fa122562a6ae05a (patch)
treee6b0747bb8ae4879b367eb1cf338e0f70e417c10 /src/core/hle/service/ldr
parentkernel/vm_manager: Amend flag values for CodeMutable (diff)
downloadyuzu-18918f5f2fba9ca1ad2f34730fa122562a6ae05a.tar
yuzu-18918f5f2fba9ca1ad2f34730fa122562a6ae05a.tar.gz
yuzu-18918f5f2fba9ca1ad2f34730fa122562a6ae05a.tar.bz2
yuzu-18918f5f2fba9ca1ad2f34730fa122562a6ae05a.tar.lz
yuzu-18918f5f2fba9ca1ad2f34730fa122562a6ae05a.tar.xz
yuzu-18918f5f2fba9ca1ad2f34730fa122562a6ae05a.tar.zst
yuzu-18918f5f2fba9ca1ad2f34730fa122562a6ae05a.zip
Diffstat (limited to 'src/core/hle/service/ldr')
-rw-r--r--src/core/hle/service/ldr/ldr.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/hle/service/ldr/ldr.cpp b/src/core/hle/service/ldr/ldr.cpp
index 9df7ac50f..d65693fc7 100644
--- a/src/core/hle/service/ldr/ldr.cpp
+++ b/src/core/hle/service/ldr/ldr.cpp
@@ -319,15 +319,14 @@ public:
}
ASSERT(vm_manager
- .MirrorMemory(*map_address, nro_addr, nro_size,
- Kernel::MemoryState::ModuleCodeStatic)
+ .MirrorMemory(*map_address, nro_addr, nro_size, Kernel::MemoryState::ModuleCode)
.IsSuccess());
ASSERT(vm_manager.UnmapRange(nro_addr, nro_size).IsSuccess());
if (bss_size > 0) {
ASSERT(vm_manager
.MirrorMemory(*map_address + nro_size, bss_addr, bss_size,
- Kernel::MemoryState::ModuleCodeStatic)
+ Kernel::MemoryState::ModuleCode)
.IsSuccess());
ASSERT(vm_manager.UnmapRange(bss_addr, bss_size).IsSuccess());
}
@@ -388,8 +387,7 @@ public:
const auto& nro_size = iter->second.size;
ASSERT(vm_manager
- .MirrorMemory(heap_addr, mapped_addr, nro_size,
- Kernel::MemoryState::ModuleCodeStatic)
+ .MirrorMemory(heap_addr, mapped_addr, nro_size, Kernel::MemoryState::ModuleCode)
.IsSuccess());
ASSERT(vm_manager.UnmapRange(mapped_addr, nro_size).IsSuccess());