aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/process.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-03-28 18:52:45 -0400
committerLioncash <mathew1800@gmail.com>2019-03-28 22:51:17 -0400
commit4ee615b15a10c6fdbb93acd792f876c947c72f31 (patch)
tree67ed72e074467a3ad6d1009fa10e2c8e1df2833d /src/core/hle/kernel/process.cpp
parent9a748d6f289fe104e712b80dc64b092b39302e36 (diff)
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.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp
index bb26737325..819d2cb0bc 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) {
MapSegment(module_.RODataSegment(), VMAPermission::Read, MemoryState::CodeData);
MapSegment(module_.DataSegment(), VMAPermission::ReadWrite, MemoryState::CodeData);
+ code_memory_size += module_.memory->size();
+
// Clear instruction cache in CPU JIT
system.InvalidateCpuInstructionCaches();
}