From ee099b26976dd7bfd1ac7907363f4f7608fe75c0 Mon Sep 17 00:00:00 2001 From: bunnei Date: Thu, 27 May 2021 17:15:23 -0700 Subject: hle: kernel: KSlabHeap: Allow host or guest allocations. - Use host allocations for kernel memory, as this is not properly emulated yet. - Use guest allocations for TLS, as this needs to be backed by DeviceMemory. --- src/core/hle/kernel/kernel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core/hle/kernel/kernel.cpp') diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index 8b55df82e..b7a6c9abf 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>(); + user_slab_heap_pages = + std::make_unique>(KSlabHeap::AllocationType::Guest); // TODO(ameerj): This should be derived, not hardcoded within the kernel constexpr u64 user_slab_heap_size{0x3de000}; -- cgit v1.2.3