diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-07-10 03:52:15 +0200 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-07-12 04:54:42 +0200 |
commit | 5c5cf2f8e000d1bf4fc12ff20351aa60367cb563 (patch) | |
tree | 2b233263cff7c001506f660373e2364c8e702637 /src/core/hle/kernel/vm_manager.h | |
parent | Memory: Fix unmapping of pages (diff) | |
download | yuzu-5c5cf2f8e000d1bf4fc12ff20351aa60367cb563.tar yuzu-5c5cf2f8e000d1bf4fc12ff20351aa60367cb563.tar.gz yuzu-5c5cf2f8e000d1bf4fc12ff20351aa60367cb563.tar.bz2 yuzu-5c5cf2f8e000d1bf4fc12ff20351aa60367cb563.tar.lz yuzu-5c5cf2f8e000d1bf4fc12ff20351aa60367cb563.tar.xz yuzu-5c5cf2f8e000d1bf4fc12ff20351aa60367cb563.tar.zst yuzu-5c5cf2f8e000d1bf4fc12ff20351aa60367cb563.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/vm_manager.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/hle/kernel/vm_manager.h b/src/core/hle/kernel/vm_manager.h index 271e2333e..b3795a94a 100644 --- a/src/core/hle/kernel/vm_manager.h +++ b/src/core/hle/kernel/vm_manager.h @@ -101,7 +101,7 @@ struct VirtualMemoryArea { * - http://duartes.org/gustavo/blog/post/how-the-kernel-manages-your-memory/ * - http://duartes.org/gustavo/blog/post/page-cache-the-affair-between-memory-and-files/ */ -class VMManager { +class VMManager final { // TODO(yuriks): Make page tables switchable to support multiple VMManagers public: /** @@ -121,6 +121,7 @@ public: using VMAHandle = decltype(vma_map)::const_iterator; VMManager(); + ~VMManager(); /// Clears the address space map, re-initializing with a single free area. void Reset(); @@ -168,6 +169,9 @@ public: /// Changes the permissions of the given VMA. void Reprotect(VMAHandle vma, VMAPermission new_perms); + /// Dumps the address space layout to the log, for debugging + void LogLayout() const; + private: using VMAIter = decltype(vma_map)::iterator; |