summaryrefslogtreecommitdiff
path: root/src/core/memory.h
diff options
context:
space:
mode:
authorGravatar B3n302017-09-25 08:29:32 +0200
committerGravatar GitHub2017-09-25 08:29:32 +0200
commitd881dee818e7e59b72cb11cea634eb70bdcd3d35 (patch)
tree4f9b241fb63b90647e2992e83d83de7d25bb5d42 /src/core/memory.h
parentMerge pull request #2951 from huwpascoe/perf-4 (diff)
parentARM_Interface: Implement PageTableChanged (diff)
downloadyuzu-d881dee818e7e59b72cb11cea634eb70bdcd3d35.tar.gz
yuzu-d881dee818e7e59b72cb11cea634eb70bdcd3d35.tar.xz
yuzu-d881dee818e7e59b72cb11cea634eb70bdcd3d35.zip
Merge pull request #2952 from MerryMage/page-tables
Switchable Page Tables
Diffstat (limited to 'src/core/memory.h')
-rw-r--r--src/core/memory.h9
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
185extern PageTable* current_page_table; 185void SetCurrentPageTable(PageTable* page_table);
186PageTable* GetCurrentPageTable();
186 187
187bool IsValidVirtualAddress(const VAddr addr); 188bool IsValidVirtualAddress(const VAddr addr);
188bool IsValidPhysicalAddress(const PAddr addr); 189bool IsValidPhysicalAddress(const PAddr addr);
@@ -259,10 +260,4 @@ enum class FlushMode {
259 */ 260 */
260void RasterizerFlushVirtualRegion(VAddr start, u32 size, FlushMode mode); 261void 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 */
267std::array<u8*, PAGE_TABLE_NUM_ENTRIES>* GetCurrentPageTablePointers();
268} // namespace Memory 263} // namespace Memory