diff options
author | bunnei <bunneidev@gmail.com> | 2022-12-28 23:28:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-28 23:28:31 +0100 |
commit | 60419dd35e8d6dec97ec12839b5b9910167315d2 (patch) | |
tree | 95b7ee20365996ee1b3aae93c254343b9b496181 /src/core/hle/kernel/k_page_table.h | |
parent | Merge pull request #9490 from ameerj/texture-cache-prealloc (diff) | |
parent | k_page_table: remove HACK_OpenPages/ClosePages (diff) | |
download | yuzu-60419dd35e8d6dec97ec12839b5b9910167315d2.tar yuzu-60419dd35e8d6dec97ec12839b5b9910167315d2.tar.gz yuzu-60419dd35e8d6dec97ec12839b5b9910167315d2.tar.bz2 yuzu-60419dd35e8d6dec97ec12839b5b9910167315d2.tar.lz yuzu-60419dd35e8d6dec97ec12839b5b9910167315d2.tar.xz yuzu-60419dd35e8d6dec97ec12839b5b9910167315d2.tar.zst yuzu-60419dd35e8d6dec97ec12839b5b9910167315d2.zip |
Diffstat (limited to 'src/core/hle/kernel/k_page_table.h')
-rw-r--r-- | src/core/hle/kernel/k_page_table.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/hle/kernel/k_page_table.h b/src/core/hle/kernel/k_page_table.h index f1ca785d7..0a454b05b 100644 --- a/src/core/hle/kernel/k_page_table.h +++ b/src/core/hle/kernel/k_page_table.h @@ -107,6 +107,10 @@ public: return *m_page_table_impl; } + KBlockInfoManager* GetBlockInfoManager() { + return m_block_info_manager; + } + bool CanContain(VAddr addr, size_t size, KMemoryState state) const; protected: @@ -261,10 +265,6 @@ private: void CleanupForIpcClientOnServerSetupFailure(PageLinkedList* page_list, VAddr address, size_t size, KMemoryPermission prot_perm); - // HACK: These will be removed once we automatically manage page reference counts. - void HACK_OpenPages(PAddr phys_addr, size_t num_pages); - void HACK_ClosePages(VAddr virt_addr, size_t num_pages); - mutable KLightLock m_general_lock; mutable KLightLock m_map_physical_memory_lock; @@ -488,6 +488,7 @@ private: std::unique_ptr<Common::PageTable> m_page_table_impl; Core::System& m_system; + KernelCore& m_kernel; }; } // namespace Kernel |