summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-01-14 01:15:43 +0100
committerGitHub <noreply@github.com>2020-01-14 01:15:43 +0100
commite749f17257f23280932a4736d6e5cf33d530ac94 (patch)
tree574c2ca368cbacf7653be6b65e285c6faebe401d
parentMerge pull request #3283 from ReinUsesLisp/vk-compute-pass (diff)
parentcore/kernel: Fix GetTotalPhysicalMemoryUsed. (diff)
downloadyuzu-e749f17257f23280932a4736d6e5cf33d530ac94.tar
yuzu-e749f17257f23280932a4736d6e5cf33d530ac94.tar.gz
yuzu-e749f17257f23280932a4736d6e5cf33d530ac94.tar.bz2
yuzu-e749f17257f23280932a4736d6e5cf33d530ac94.tar.lz
yuzu-e749f17257f23280932a4736d6e5cf33d530ac94.tar.xz
yuzu-e749f17257f23280932a4736d6e5cf33d530ac94.tar.zst
yuzu-e749f17257f23280932a4736d6e5cf33d530ac94.zip
-rw-r--r--src/core/hle/kernel/process.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp
index 12ea4ebe3..b9035a0be 100644
--- a/src/core/hle/kernel/process.cpp
+++ b/src/core/hle/kernel/process.cpp
@@ -317,6 +317,8 @@ void Process::FreeTLSRegion(VAddr tls_address) {
}
void Process::LoadModule(CodeSet module_, VAddr base_addr) {
+ code_memory_size += module_.memory.size();
+
const auto memory = std::make_shared<PhysicalMemory>(std::move(module_.memory));
const auto MapSegment = [&](const CodeSet::Segment& segment, VMAPermission permissions,
@@ -332,8 +334,6 @@ void Process::LoadModule(CodeSet module_, VAddr base_addr) {
MapSegment(module_.CodeSegment(), VMAPermission::ReadExecute, MemoryState::Code);
MapSegment(module_.RODataSegment(), VMAPermission::Read, MemoryState::CodeData);
MapSegment(module_.DataSegment(), VMAPermission::ReadWrite, MemoryState::CodeData);
-
- code_memory_size += module_.memory.size();
}
Process::Process(Core::System& system)