diff options
Diffstat (limited to '')
| -rw-r--r-- | src/core/memory.cpp | 4 | ||||
| -rw-r--r-- | src/core/memory.h | 6 |
2 files changed, 0 insertions, 10 deletions
diff --git a/src/core/memory.cpp b/src/core/memory.cpp index 17fa10b49..67ba732ad 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp | |||
| @@ -24,10 +24,6 @@ static std::array<u8, Memory::N3DS_EXTRA_RAM_SIZE> n3ds_extra_ram; | |||
| 24 | 24 | ||
| 25 | static PageTable* current_page_table = nullptr; | 25 | static PageTable* current_page_table = nullptr; |
| 26 | 26 | ||
| 27 | std::array<u8*, PAGE_TABLE_NUM_ENTRIES>* GetCurrentPageTablePointers() { | ||
| 28 | return ¤t_page_table->pointers; | ||
| 29 | } | ||
| 30 | |||
| 31 | void SetCurrentPageTable(PageTable* page_table) { | 27 | void SetCurrentPageTable(PageTable* page_table) { |
| 32 | current_page_table = page_table; | 28 | current_page_table = page_table; |
| 33 | } | 29 | } |
diff --git a/src/core/memory.h b/src/core/memory.h index db5a704d0..1865bfea0 100644 --- a/src/core/memory.h +++ b/src/core/memory.h | |||
| @@ -260,10 +260,4 @@ enum class FlushMode { | |||
| 260 | */ | 260 | */ |
| 261 | void RasterizerFlushVirtualRegion(VAddr start, u32 size, FlushMode mode); | 261 | void RasterizerFlushVirtualRegion(VAddr start, u32 size, FlushMode mode); |
| 262 | 262 | ||
| 263 | /** | ||
| 264 | * Dynarmic has an optimization to memory accesses when the pointer to the page exists that | ||
| 265 | * can be used by setting up the current page table as a callback. This function is used to | ||
| 266 | * retrieve the current page table for that purpose. | ||
| 267 | */ | ||
| 268 | std::array<u8*, PAGE_TABLE_NUM_ENTRIES>* GetCurrentPageTablePointers(); | ||
| 269 | } // namespace Memory | 263 | } // namespace Memory |