diff options
Diffstat (limited to 'src/core/memory.h')
| -rw-r--r-- | src/core/memory.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/core/memory.h b/src/core/memory.h index b228a48c2..1865bfea0 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); |
| @@ -259,10 +260,4 @@ enum class FlushMode { | |||
| 259 | */ | 260 | */ |
| 260 | void RasterizerFlushVirtualRegion(VAddr start, u32 size, FlushMode mode); | 261 | void RasterizerFlushVirtualRegion(VAddr start, u32 size, FlushMode mode); |
| 261 | 262 | ||
| 262 | /** | ||
| 263 | * Dynarmic has an optimization to memory accesses when the pointer to the page exists that | ||
| 264 | * can be used by setting up the current page table as a callback. This function is used to | ||
| 265 | * retrieve the current page table for that purpose. | ||
| 266 | */ | ||
| 267 | std::array<u8*, PAGE_TABLE_NUM_ENTRIES>* GetCurrentPageTablePointers(); | ||
| 268 | } // namespace Memory | 263 | } // namespace Memory |