diff options
author | Markus Wick <markus@selfnet.de> | 2020-01-11 13:52:34 +0100 |
---|---|---|
committer | Markus Wick <markus@selfnet.de> | 2020-01-11 14:04:44 +0100 |
commit | c76ffa501996ba2597b34ebb3b502a9c8d5dc30a (patch) | |
tree | 2c34aa7092c81ba93fe9a76e7a64967985142f68 /src/core/hle | |
parent | Merge pull request #3279 from ReinUsesLisp/vk-pipeline-cache (diff) | |
download | yuzu-c76ffa501996ba2597b34ebb3b502a9c8d5dc30a.tar yuzu-c76ffa501996ba2597b34ebb3b502a9c8d5dc30a.tar.gz yuzu-c76ffa501996ba2597b34ebb3b502a9c8d5dc30a.tar.bz2 yuzu-c76ffa501996ba2597b34ebb3b502a9c8d5dc30a.tar.lz yuzu-c76ffa501996ba2597b34ebb3b502a9c8d5dc30a.tar.xz yuzu-c76ffa501996ba2597b34ebb3b502a9c8d5dc30a.tar.zst yuzu-c76ffa501996ba2597b34ebb3b502a9c8d5dc30a.zip |
Diffstat (limited to 'src/core/hle')
-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) |