diff options
author | bunnei <bunneidev@gmail.com> | 2019-08-21 18:10:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-21 18:10:10 +0200 |
commit | b4a8cfbd00863032fe4b4ed0145cfe1711b9317d (patch) | |
tree | 96d2ef5ae4b54857e2fd9b0dae5cb867acf30f7f /src/core/hle/kernel/process.cpp | |
parent | Merge pull request #2769 from FernandoS27/commands-flush (diff) | |
parent | Common/Alignment: Add noexcept where required. (diff) | |
download | yuzu-b4a8cfbd00863032fe4b4ed0145cfe1711b9317d.tar yuzu-b4a8cfbd00863032fe4b4ed0145cfe1711b9317d.tar.gz yuzu-b4a8cfbd00863032fe4b4ed0145cfe1711b9317d.tar.bz2 yuzu-b4a8cfbd00863032fe4b4ed0145cfe1711b9317d.tar.lz yuzu-b4a8cfbd00863032fe4b4ed0145cfe1711b9317d.tar.xz yuzu-b4a8cfbd00863032fe4b4ed0145cfe1711b9317d.tar.zst yuzu-b4a8cfbd00863032fe4b4ed0145cfe1711b9317d.zip |
Diffstat (limited to 'src/core/hle/kernel/process.cpp')
-rw-r--r-- | src/core/hle/kernel/process.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp index 92169a97b..e80a12ac3 100644 --- a/src/core/hle/kernel/process.cpp +++ b/src/core/hle/kernel/process.cpp @@ -247,7 +247,7 @@ VAddr Process::CreateTLSRegion() { ASSERT(region_address.Succeeded()); const auto map_result = vm_manager.MapMemoryBlock( - *region_address, std::make_shared<std::vector<u8>>(Memory::PAGE_SIZE), 0, + *region_address, std::make_shared<PhysicalMemory>(Memory::PAGE_SIZE), 0, Memory::PAGE_SIZE, MemoryState::ThreadLocal); ASSERT(map_result.Succeeded()); @@ -277,7 +277,7 @@ void Process::FreeTLSRegion(VAddr tls_address) { } void Process::LoadModule(CodeSet module_, VAddr base_addr) { - const auto memory = std::make_shared<std::vector<u8>>(std::move(module_.memory)); + const auto memory = std::make_shared<PhysicalMemory>(std::move(module_.memory)); const auto MapSegment = [&](const CodeSet::Segment& segment, VMAPermission permissions, MemoryState memory_state) { @@ -327,7 +327,7 @@ void Process::AllocateMainThreadStack(u64 stack_size) { // Allocate and map the main thread stack const VAddr mapping_address = vm_manager.GetTLSIORegionEndAddress() - main_thread_stack_size; vm_manager - .MapMemoryBlock(mapping_address, std::make_shared<std::vector<u8>>(main_thread_stack_size), + .MapMemoryBlock(mapping_address, std::make_shared<PhysicalMemory>(main_thread_stack_size), 0, main_thread_stack_size, MemoryState::Stack) .Unwrap(); } |