diff options
| author | 2019-03-28 18:52:45 -0400 | |
|---|---|---|
| committer | 2019-03-28 22:51:17 -0400 | |
| commit | 2289e895aa63cdb391795c573b96b1880c31f097 (patch) | |
| tree | 67ed72e074467a3ad6d1009fa10e2c8e1df2833d /src/core/hle/kernel/process.cpp | |
| parent | kernel/process: Store the main thread stack size to a data member (diff) | |
| download | yuzu-2289e895aa63cdb391795c573b96b1880c31f097.tar.gz yuzu-2289e895aa63cdb391795c573b96b1880c31f097.tar.xz yuzu-2289e895aa63cdb391795c573b96b1880c31f097.zip | |
kernel/process: Store the total size of the code memory loaded
This will be necessary to properly report the used memory size in
svcGetInfo.
Diffstat (limited to 'src/core/hle/kernel/process.cpp')
| -rw-r--r-- | src/core/hle/kernel/process.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp index bb2673732..819d2cb0b 100644 --- a/src/core/hle/kernel/process.cpp +++ b/src/core/hle/kernel/process.cpp | |||
| @@ -228,6 +228,8 @@ void Process::LoadModule(CodeSet module_, VAddr base_addr) { | |||
| 228 | MapSegment(module_.RODataSegment(), VMAPermission::Read, MemoryState::CodeData); | 228 | MapSegment(module_.RODataSegment(), VMAPermission::Read, MemoryState::CodeData); |
| 229 | MapSegment(module_.DataSegment(), VMAPermission::ReadWrite, MemoryState::CodeData); | 229 | MapSegment(module_.DataSegment(), VMAPermission::ReadWrite, MemoryState::CodeData); |
| 230 | 230 | ||
| 231 | code_memory_size += module_.memory->size(); | ||
| 232 | |||
| 231 | // Clear instruction cache in CPU JIT | 233 | // Clear instruction cache in CPU JIT |
| 232 | system.InvalidateCpuInstructionCaches(); | 234 | system.InvalidateCpuInstructionCaches(); |
| 233 | } | 235 | } |