diff options
author | Lioncash <mathew1800@gmail.com> | 2019-03-05 18:28:10 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-03-05 21:47:03 +0100 |
commit | c161389a0f0b0fe3b9d6400c45fd87152f2cb14c (patch) | |
tree | b050bdbd77611a1205028b6307f4aca72e1c7417 /src/tests | |
parent | kernel/address_arbiter: Minor tidying up (diff) | |
download | yuzu-c161389a0f0b0fe3b9d6400c45fd87152f2cb14c.tar yuzu-c161389a0f0b0fe3b9d6400c45fd87152f2cb14c.tar.gz yuzu-c161389a0f0b0fe3b9d6400c45fd87152f2cb14c.tar.bz2 yuzu-c161389a0f0b0fe3b9d6400c45fd87152f2cb14c.tar.lz yuzu-c161389a0f0b0fe3b9d6400c45fd87152f2cb14c.tar.xz yuzu-c161389a0f0b0fe3b9d6400c45fd87152f2cb14c.tar.zst yuzu-c161389a0f0b0fe3b9d6400c45fd87152f2cb14c.zip |
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/core/arm/arm_test_common.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/core/arm/arm_test_common.cpp b/src/tests/core/arm/arm_test_common.cpp index 9b8a44fa1..ea27ef90d 100644 --- a/src/tests/core/arm/arm_test_common.cpp +++ b/src/tests/core/arm/arm_test_common.cpp @@ -13,11 +13,11 @@ namespace ArmTests { TestEnvironment::TestEnvironment(bool mutable_memory_) - : mutable_memory(mutable_memory_), test_memory(std::make_shared<TestMemory>(this)) { - + : mutable_memory(mutable_memory_), + test_memory(std::make_shared<TestMemory>(this)), kernel{Core::System::GetInstance()} { auto process = Kernel::Process::Create(kernel, ""); kernel.MakeCurrentProcess(process.get()); - page_table = &Core::CurrentProcess()->VMManager().page_table; + page_table = &process->VMManager().page_table; std::fill(page_table->pointers.begin(), page_table->pointers.end(), nullptr); page_table->special_regions.clear(); |