summaryrefslogtreecommitdiff
path: root/src/core/memory.h
diff options
context:
space:
mode:
authorGravatar bunnei2021-05-20 18:15:59 -0700
committerGravatar bunnei2021-05-20 21:41:52 -0700
commitb4fc2e52a2d51f8958b77fbe4fb76c854cd4593b (patch)
tree64efafb1dfba8ba239d84d35fd78a584a6f4cb3a /src/core/memory.h
parentRevert "WORKAROUND: Do not use slab heap while we track down issues with reso... (diff)
downloadyuzu-b4fc2e52a2d51f8958b77fbe4fb76c854cd4593b.tar.gz
yuzu-b4fc2e52a2d51f8958b77fbe4fb76c854cd4593b.tar.xz
yuzu-b4fc2e52a2d51f8958b77fbe4fb76c854cd4593b.zip
hle: kernel: Use host memory allocations for KSlabMemory.
- There are some issues with the current workaround, we will just use host memory until we have a complete kernel memory implementation.
Diffstat (limited to 'src/core/memory.h')
-rw-r--r--src/core/memory.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/core/memory.h b/src/core/memory.h
index 345fd870d..c91eeced9 100644
--- a/src/core/memory.h
+++ b/src/core/memory.h
@@ -121,15 +121,6 @@ public:
121 */ 121 */
122 u8* GetPointer(VAddr vaddr); 122 u8* GetPointer(VAddr vaddr);
123 123
124 /**
125 * Gets a pointer to the start of a kernel heap allocated memory region. Will allocate one if it
126 * does not already exist.
127 *
128 * @param start_vaddr Start virtual address for the memory region.
129 * @param size Size of the memory region.
130 */
131 u8* GetKernelBuffer(VAddr start_vaddr, size_t size);
132
133 template <typename T> 124 template <typename T>
134 T* GetPointer(VAddr vaddr) { 125 T* GetPointer(VAddr vaddr) {
135 return reinterpret_cast<T*>(GetPointer(vaddr)); 126 return reinterpret_cast<T*>(GetPointer(vaddr));