diff options
| author | 2017-09-24 22:42:42 +0100 | |
|---|---|---|
| committer | 2017-09-24 22:42:42 +0100 | |
| commit | c02bbb7030efd072511bd0051a44d9e503016f74 (patch) | |
| tree | cf830eadae6493ee83b7de8b44c10c89d668b5ca /src/core/memory.h | |
| parent | Merge pull request #2921 from jroweboy/batch-fix-2 (diff) | |
| download | yuzu-c02bbb7030efd072511bd0051a44d9e503016f74.tar.gz yuzu-c02bbb7030efd072511bd0051a44d9e503016f74.tar.xz yuzu-c02bbb7030efd072511bd0051a44d9e503016f74.zip | |
memory: Add GetCurrentPageTable/SetCurrentPageTable
Don't expose Memory::current_page_table as a global.
Diffstat (limited to 'src/core/memory.h')
| -rw-r--r-- | src/core/memory.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/memory.h b/src/core/memory.h index b228a48c2..db5a704d0 100644 --- a/src/core/memory.h +++ b/src/core/memory.h | |||
| @@ -182,7 +182,8 @@ enum : VAddr { | |||
| 182 | }; | 182 | }; |
| 183 | 183 | ||
| 184 | /// Currently active page table | 184 | /// Currently active page table |
| 185 | extern PageTable* current_page_table; | 185 | void SetCurrentPageTable(PageTable* page_table); |
| 186 | PageTable* GetCurrentPageTable(); | ||
| 186 | 187 | ||
| 187 | bool IsValidVirtualAddress(const VAddr addr); | 188 | bool IsValidVirtualAddress(const VAddr addr); |
| 188 | bool IsValidPhysicalAddress(const PAddr addr); | 189 | bool IsValidPhysicalAddress(const PAddr addr); |