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 | 2589fb3ad93bfdd51a230897db528d69f3aad5be (patch) | |
| tree | e495cfe90663271f1e0ae1729336f8350134195f /src/core/hle/kernel/process.cpp | |
| parent | e71c2689c335837cc610ed97bc6ab7e48ea22beb (diff) | |
| parent | 60a98211a2e79c95a8b27df861e93344a9584846 (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 15a16ae147..83cfea0d4c 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(); |
