mirror of
https://github.com/yuzu-mirror/yuzu
synced 2024-11-28 03:10:16 +00:00
arm_test_common: Updates for new VMM.
This commit is contained in:
parent
108564df57
commit
d95ceaa8ec
1 changed files with 2 additions and 6 deletions
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
#include "common/page_table.h"
|
#include "common/page_table.h"
|
||||||
#include "core/core.h"
|
#include "core/core.h"
|
||||||
|
#include "core/hle/kernel/memory/page_table.h"
|
||||||
#include "core/hle/kernel/process.h"
|
#include "core/hle/kernel/process.h"
|
||||||
#include "core/memory.h"
|
#include "core/memory.h"
|
||||||
#include "tests/core/arm/arm_test_common.h"
|
#include "tests/core/arm/arm_test_common.h"
|
||||||
|
@ -18,12 +19,7 @@ TestEnvironment::TestEnvironment(bool mutable_memory_)
|
||||||
auto& system = Core::System::GetInstance();
|
auto& system = Core::System::GetInstance();
|
||||||
|
|
||||||
auto process = Kernel::Process::Create(system, "", Kernel::Process::ProcessType::Userland);
|
auto process = Kernel::Process::Create(system, "", Kernel::Process::ProcessType::Userland);
|
||||||
page_table = &process->VMManager().page_table;
|
page_table = &process->PageTable().PageTableImpl();
|
||||||
|
|
||||||
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);
|
|
||||||
|
|
||||||
system.Memory().MapIoRegion(*page_table, 0x00000000, 0x80000000, test_memory);
|
system.Memory().MapIoRegion(*page_table, 0x00000000, 0x80000000, test_memory);
|
||||||
system.Memory().MapIoRegion(*page_table, 0x80000000, 0x80000000, test_memory);
|
system.Memory().MapIoRegion(*page_table, 0x80000000, 0x80000000, test_memory);
|
||||||
|
|
Loading…
Reference in a new issue