1
0
Fork 0
mirror of https://github.com/PabloMK7/citra.git synced 2025-07-05 06:55:15 +00:00

memory: Add GetCurrentPageTable/SetCurrentPageTable

Don't expose Memory::current_page_table as a global.
This commit is contained in:
MerryMage 2017-09-24 22:42:42 +01:00
parent 93930a966f
commit c02bbb7030
7 changed files with 19 additions and 13 deletions
src/core

View file

@ -182,7 +182,8 @@ enum : VAddr {
};
/// Currently active page table
extern PageTable* current_page_table;
void SetCurrentPageTable(PageTable* page_table);
PageTable* GetCurrentPageTable();
bool IsValidVirtualAddress(const VAddr addr);
bool IsValidPhysicalAddress(const PAddr addr);