diff options
author | itsmeft24 <rishabh.tumminkatti@gmail.com> | 2021-12-05 21:04:08 +0100 |
---|---|---|
committer | itsmeft24 <rishabh.tumminkatti@gmail.com> | 2021-12-05 21:04:08 +0100 |
commit | 8aef8f39d86affd8fcc9a812d3d597f8eaee90b8 (patch) | |
tree | c0249fef800fad1f0ad0b027b85a1801ac41e294 /src/core/hle/kernel/kernel.h | |
parent | Merge pull request #7494 from Morph1984/no-time-to-wait (diff) | |
download | yuzu-8aef8f39d86affd8fcc9a812d3d597f8eaee90b8.tar yuzu-8aef8f39d86affd8fcc9a812d3d597f8eaee90b8.tar.gz yuzu-8aef8f39d86affd8fcc9a812d3d597f8eaee90b8.tar.bz2 yuzu-8aef8f39d86affd8fcc9a812d3d597f8eaee90b8.tar.lz yuzu-8aef8f39d86affd8fcc9a812d3d597f8eaee90b8.tar.xz yuzu-8aef8f39d86affd8fcc9a812d3d597f8eaee90b8.tar.zst yuzu-8aef8f39d86affd8fcc9a812d3d597f8eaee90b8.zip |
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
-rw-r--r-- | src/core/hle/kernel/kernel.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index d2ceae950..d847fd0c5 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h @@ -53,6 +53,7 @@ class KSharedMemoryInfo; class KThread; class KTransferMemory; class KWritableEvent; +class KCodeMemory; class PhysicalCore; class ServiceThread; class Synchronization; @@ -326,6 +327,8 @@ public: return slab_heap_container->transfer_memory; } else if constexpr (std::is_same_v<T, KWritableEvent>) { return slab_heap_container->writeable_event; + } else if constexpr (std::is_same_v<T, KCodeMemory>) { + return slab_heap_container->code_memory; } } @@ -377,6 +380,7 @@ private: KSlabHeap<KThread> thread; KSlabHeap<KTransferMemory> transfer_memory; KSlabHeap<KWritableEvent> writeable_event; + KSlabHeap<KCodeMemory> code_memory; }; std::unique_ptr<SlabHeapContainer> slab_heap_container; |