summaryrefslogtreecommitdiffstats
path: root/src/core/memory.cpp
diff options
context:
space:
mode:
authorMerryMage <MerryMage@users.noreply.github.com>2017-09-24 23:44:13 +0200
committerMerryMage <MerryMage@users.noreply.github.com>2017-09-25 00:08:25 +0200
commit67a70bd9e1655dfd705550c1d561f3ba444360c8 (patch)
tree18f0720a18d9d878a7699c755bf167af8564b776 /src/core/memory.cpp
parentmemory: Remove GetCurrentPageTablePointers (diff)
downloadyuzu-67a70bd9e1655dfd705550c1d561f3ba444360c8.tar
yuzu-67a70bd9e1655dfd705550c1d561f3ba444360c8.tar.gz
yuzu-67a70bd9e1655dfd705550c1d561f3ba444360c8.tar.bz2
yuzu-67a70bd9e1655dfd705550c1d561f3ba444360c8.tar.lz
yuzu-67a70bd9e1655dfd705550c1d561f3ba444360c8.tar.xz
yuzu-67a70bd9e1655dfd705550c1d561f3ba444360c8.tar.zst
yuzu-67a70bd9e1655dfd705550c1d561f3ba444360c8.zip
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 @@
#include "common/common_types.h"
#include "common/logging/log.h"
#include "common/swap.h"
+#include "core/arm/arm_interface.h"
+#include "core/core.h"
#include "core/hle/kernel/memory.h"
#include "core/hle/kernel/process.h"
#include "core/hle/lock.h"
@@ -26,6 +28,9 @@ static PageTable* current_page_table = nullptr;
void SetCurrentPageTable(PageTable* page_table) {
current_page_table = page_table;
+ if (Core::System::GetInstance().IsPoweredOn()) {
+ Core::CPU().PageTableChanged();
+ }
}
PageTable* GetCurrentPageTable() {