summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/process.cpp
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/kernel/process.cpp
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/kernel/process.cpp')
-rw-r--r--src/core/hle/kernel/process.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp
index 15a16ae14..83cfea0d4 100644
--- a/src/core/hle/kernel/process.cpp
+++ b/src/core/hle/kernel/process.cpp
@@ -220,9 +220,9 @@ void Process::LoadModule(CodeSet module_, VAddr base_addr) {
};
// Map CodeSet segments
- MapSegment(module_.CodeSegment(), VMAPermission::ReadExecute, MemoryState::CodeStatic);
- MapSegment(module_.RODataSegment(), VMAPermission::Read, MemoryState::CodeMutable);
- MapSegment(module_.DataSegment(), VMAPermission::ReadWrite, MemoryState::CodeMutable);
+ MapSegment(module_.CodeSegment(), VMAPermission::ReadExecute, MemoryState::Code);
+ MapSegment(module_.RODataSegment(), VMAPermission::Read, MemoryState::CodeData);
+ MapSegment(module_.DataSegment(), VMAPermission::ReadWrite, MemoryState::CodeData);
// Clear instruction cache in CPU JIT
system.InvalidateCpuInstructionCaches();