summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-04-09 04:19:42 +0200
committerbunnei <bunneidev@gmail.com>2020-04-17 06:59:33 +0200
commitd95ceaa8ec7a5f3a16ffe3c16cb522a2fad5c746 (patch)
tree3665912dfafdceb9cf0e28a27bc5621e0dbafd25 /src
parentkernel: process: Updates for new VMM. (diff)
downloadyuzu-d95ceaa8ec7a5f3a16ffe3c16cb522a2fad5c746.tar
yuzu-d95ceaa8ec7a5f3a16ffe3c16cb522a2fad5c746.tar.gz
yuzu-d95ceaa8ec7a5f3a16ffe3c16cb522a2fad5c746.tar.bz2
yuzu-d95ceaa8ec7a5f3a16ffe3c16cb522a2fad5c746.tar.lz
yuzu-d95ceaa8ec7a5f3a16ffe3c16cb522a2fad5c746.tar.xz
yuzu-d95ceaa8ec7a5f3a16ffe3c16cb522a2fad5c746.tar.zst
yuzu-d95ceaa8ec7a5f3a16ffe3c16cb522a2fad5c746.zip
Diffstat (limited to 'src')
-rw-r--r--src/tests/core/arm/arm_test_common.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/tests/core/arm/arm_test_common.cpp b/src/tests/core/arm/arm_test_common.cpp
index 17043346b..e54674d11 100644
--- a/src/tests/core/arm/arm_test_common.cpp
+++ b/src/tests/core/arm/arm_test_common.cpp
@@ -6,6 +6,7 @@
#include "common/page_table.h"
#include "core/core.h"
+#include "core/hle/kernel/memory/page_table.h"
#include "core/hle/kernel/process.h"
#include "core/memory.h"
#include "tests/core/arm/arm_test_common.h"
@@ -18,12 +19,7 @@ TestEnvironment::TestEnvironment(bool mutable_memory_)
auto& system = Core::System::GetInstance();
auto process = Kernel::Process::Create(system, "", Kernel::Process::ProcessType::Userland);
- page_table = &process->VMManager().page_table;
-
- std::fill(page_table->pointers.begin(), page_table->pointers.end(), nullptr);
- page_table->special_regions.clear();
- std::fill(page_table->attributes.begin(), page_table->attributes.end(),
- Common::PageType::Unmapped);
+ page_table = &process->PageTable().PageTableImpl();
system.Memory().MapIoRegion(*page_table, 0x00000000, 0x80000000, test_memory);
system.Memory().MapIoRegion(*page_table, 0x80000000, 0x80000000, test_memory);