diff options
author | bunnei <bunneidev@gmail.com> | 2020-01-14 01:15:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-14 01:15:43 +0100 |
commit | e749f17257f23280932a4736d6e5cf33d530ac94 (patch) | |
tree | 574c2ca368cbacf7653be6b65e285c6faebe401d | |
parent | Merge pull request #3283 from ReinUsesLisp/vk-compute-pass (diff) | |
parent | core/kernel: Fix GetTotalPhysicalMemoryUsed. (diff) | |
download | yuzu-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.cpp | 4 |
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) |