diff options
| author | bunnei <bunneidev@gmail.com> | 2021-05-27 17:15:23 -0700 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2021-05-28 17:42:41 -0700 |
| commit | 639baf88f71ac8b49622ad6982ba2af50a3214ea (patch) | |
| tree | 17663da7860f35ae4ac2dad054cb59b75e0363e1 /src/core/hle/kernel/kernel.cpp | |
| parent | 1a459cd78071fdf44ccd6941a88e843974de3a02 (diff) | |
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.
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 8b55df82ef..b7a6c9abfb 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}; |
