diff options
author | MerryMage <MerryMage@users.noreply.github.com> | 2017-09-24 23:44:13 +0200 |
---|---|---|
committer | MerryMage <MerryMage@users.noreply.github.com> | 2017-09-25 00:08:25 +0200 |
commit | 67a70bd9e1655dfd705550c1d561f3ba444360c8 (patch) | |
tree | 18f0720a18d9d878a7699c755bf167af8564b776 /src/core/memory.cpp | |
parent | memory: Remove GetCurrentPageTablePointers (diff) | |
download | yuzu-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 '')
-rw-r--r-- | src/core/memory.cpp | 5 |
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() { |