diff options
author | bunnei <bunneidev@gmail.com> | 2021-05-29 09:17:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-29 09:17:24 +0200 |
commit | 5388e6db840b32fac1cb70bd490a383c01cf7cd1 (patch) | |
tree | 2bcc3ad68829e352261b63f49a4afa14cbcdf89d /src/core/hle/kernel/kernel.cpp | |
parent | Merge pull request #6383 from degasus/fix_gcc_warnings (diff) | |
parent | hle: kernel: KSlabHeap: Allow host or guest allocations. (diff) | |
download | yuzu-5388e6db840b32fac1cb70bd490a383c01cf7cd1.tar yuzu-5388e6db840b32fac1cb70bd490a383c01cf7cd1.tar.gz yuzu-5388e6db840b32fac1cb70bd490a383c01cf7cd1.tar.bz2 yuzu-5388e6db840b32fac1cb70bd490a383c01cf7cd1.tar.lz yuzu-5388e6db840b32fac1cb70bd490a383c01cf7cd1.tar.xz yuzu-5388e6db840b32fac1cb70bd490a383c01cf7cd1.tar.zst yuzu-5388e6db840b32fac1cb70bd490a383c01cf7cd1.zip |
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r-- | src/core/hle/kernel/kernel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index 7ca2a2ef1..0ffb78d51 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -620,7 +620,8 @@ struct KernelCore::Impl { void InitializePageSlab() { // Allocate slab heaps - user_slab_heap_pages = std::make_unique<KSlabHeap<Page>>(); + user_slab_heap_pages = + std::make_unique<KSlabHeap<Page>>(KSlabHeap<Page>::AllocationType::Guest); // TODO(ameerj): This should be derived, not hardcoded within the kernel constexpr u64 user_slab_heap_size{0x3de000}; |