summaryrefslogtreecommitdiff
path: root/src/core/memory.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2018-05-11 12:59:23 -0400
committerGravatar GitHub2018-05-11 12:59:23 -0400
commit1b5c02fc37206bbd33715d2dde6258c3f835581c (patch)
tree1c33c66e734ff55228e4293cd2720070cd467080 /src/core/memory.cpp
parentMerge pull request #439 from ogniK5377/GetTPCMasks (diff)
parentcore: Add several missing docstrings. (diff)
downloadyuzu-1b5c02fc37206bbd33715d2dde6258c3f835581c.tar.gz
yuzu-1b5c02fc37206bbd33715d2dde6258c3f835581c.tar.xz
yuzu-1b5c02fc37206bbd33715d2dde6258c3f835581c.zip
Merge pull request #436 from bunnei/multi-core
Initial support for multi-core
Diffstat (limited to 'src/core/memory.cpp')
-rw-r--r--src/core/memory.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/core/memory.cpp b/src/core/memory.cpp
index db8211463..3b81acd63 100644
--- a/src/core/memory.cpp
+++ b/src/core/memory.cpp
@@ -28,8 +28,13 @@ static PageTable* current_page_table = nullptr;
28 28
29void SetCurrentPageTable(PageTable* page_table) { 29void SetCurrentPageTable(PageTable* page_table) {
30 current_page_table = page_table; 30 current_page_table = page_table;
31 if (Core::System::GetInstance().IsPoweredOn()) { 31
32 Core::CPU().PageTableChanged(); 32 auto& system = Core::System::GetInstance();
33 if (system.IsPoweredOn()) {
34 system.ArmInterface(0).PageTableChanged();
35 system.ArmInterface(1).PageTableChanged();
36 system.ArmInterface(2).PageTableChanged();
37 system.ArmInterface(3).PageTableChanged();
33 } 38 }
34} 39}
35 40