summaryrefslogtreecommitdiff
path: root/src/core/memory.cpp
diff options
context:
space:
mode:
authorGravatar MerryMage2017-09-24 22:44:13 +0100
committerGravatar MerryMage2017-09-24 23:08:25 +0100
commit67a70bd9e1655dfd705550c1d561f3ba444360c8 (patch)
tree18f0720a18d9d878a7699c755bf167af8564b776 /src/core/memory.cpp
parentmemory: Remove GetCurrentPageTablePointers (diff)
downloadyuzu-67a70bd9e1655dfd705550c1d561f3ba444360c8.tar.gz
yuzu-67a70bd9e1655dfd705550c1d561f3ba444360c8.tar.xz
yuzu-67a70bd9e1655dfd705550c1d561f3ba444360c8.zip
ARM_Interface: Implement PageTableChanged
Diffstat (limited to 'src/core/memory.cpp')
-rw-r--r--src/core/memory.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/memory.cpp b/src/core/memory.cpp
index 67ba732ad..a6b5f6c99 100644
--- a/src/core/memory.cpp
+++ b/src/core/memory.cpp
@@ -9,6 +9,8 @@
9#include "common/common_types.h" 9#include "common/common_types.h"
10#include "common/logging/log.h" 10#include "common/logging/log.h"
11#include "common/swap.h" 11#include "common/swap.h"
12#include "core/arm/arm_interface.h"
13#include "core/core.h"
12#include "core/hle/kernel/memory.h" 14#include "core/hle/kernel/memory.h"
13#include "core/hle/kernel/process.h" 15#include "core/hle/kernel/process.h"
14#include "core/hle/lock.h" 16#include "core/hle/lock.h"
@@ -26,6 +28,9 @@ static PageTable* current_page_table = nullptr;
26 28
27void SetCurrentPageTable(PageTable* page_table) { 29void SetCurrentPageTable(PageTable* page_table) {
28 current_page_table = page_table; 30 current_page_table = page_table;
31 if (Core::System::GetInstance().IsPoweredOn()) {
32 Core::CPU().PageTableChanged();
33 }
29} 34}
30 35
31PageTable* GetCurrentPageTable() { 36PageTable* GetCurrentPageTable() {