diff options
| author | bunnei <bunneidev@gmail.com> | 2019-03-21 21:43:15 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-21 21:43:15 -0400 |
| commit | 4d95adcac589f334edad655c81e56118b020c52e (patch) | |
| tree | e495cfe90663271f1e0ae1729336f8350134195f /src/core/hle/kernel/process.cpp | |
| parent | e703772c83b8f5ed83095b3378ef3f95ba3b3bf3 (diff) | |
| parent | 18918f5f2fba9ca1ad2f34730fa122562a6ae05a (diff) | |
Merge pull request #2275 from lioncash/memflags
kernel/vm_manager: Amend flag value for code data
Diffstat (limited to 'src/core/hle/kernel/process.cpp')
| -rw-r--r-- | src/core/hle/kernel/process.cpp | 6 |
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(); |
