summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/kernel.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-05-29 09:17:24 +0200
committerGitHub <noreply@github.com>2021-05-29 09:17:24 +0200
commit5388e6db840b32fac1cb70bd490a383c01cf7cd1 (patch)
tree2bcc3ad68829e352261b63f49a4afa14cbcdf89d /src/core/hle/kernel/kernel.cpp
parentMerge pull request #6383 from degasus/fix_gcc_warnings (diff)
parenthle: kernel: KSlabHeap: Allow host or guest allocations. (diff)
downloadyuzu-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.cpp3
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};