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:
parent
93930a966f
commit
c02bbb7030
7 changed files with 19 additions and 13 deletions
src/core
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue