summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Lioncash2018-07-20 17:51:29 -0400
committerGravatar Lioncash2018-07-20 17:52:37 -0400
commita8bb1eb39fe2cf62545798a493f6350c3d1d5728 (patch)
tree27d2e7b72c14191c6846af5f5418f67e1ccae3da
parentarm_test_common: Add missing header guard (diff)
downloadyuzu-a8bb1eb39fe2cf62545798a493f6350c3d1d5728.tar.gz
yuzu-a8bb1eb39fe2cf62545798a493f6350c3d1d5728.tar.xz
yuzu-a8bb1eb39fe2cf62545798a493f6350c3d1d5728.zip
arm_test_common: Make file static variable a member variable of the testing environment
Gets rid of file-static behavior.
Diffstat (limited to '')
-rw-r--r--src/tests/core/arm/arm_test_common.cpp2
-rw-r--r--src/tests/core/arm/arm_test_common.h5
2 files changed, 5 insertions, 2 deletions
diff --git a/src/tests/core/arm/arm_test_common.cpp b/src/tests/core/arm/arm_test_common.cpp
index 7f9f27e19..2af487b6a 100644
--- a/src/tests/core/arm/arm_test_common.cpp
+++ b/src/tests/core/arm/arm_test_common.cpp
@@ -10,8 +10,6 @@
10 10
11namespace ArmTests { 11namespace ArmTests {
12 12
13static Memory::PageTable* page_table = nullptr;
14
15TestEnvironment::TestEnvironment(bool mutable_memory_) 13TestEnvironment::TestEnvironment(bool mutable_memory_)
16 : mutable_memory(mutable_memory_), test_memory(std::make_shared<TestMemory>(this)) { 14 : mutable_memory(mutable_memory_), test_memory(std::make_shared<TestMemory>(this)) {
17 15
diff --git a/src/tests/core/arm/arm_test_common.h b/src/tests/core/arm/arm_test_common.h
index 368f6f6c7..7fdbda494 100644
--- a/src/tests/core/arm/arm_test_common.h
+++ b/src/tests/core/arm/arm_test_common.h
@@ -11,6 +11,10 @@
11#include "common/common_types.h" 11#include "common/common_types.h"
12#include "core/memory_hook.h" 12#include "core/memory_hook.h"
13 13
14namespace Memory {
15struct PageTable;
16}
17
14namespace ArmTests { 18namespace ArmTests {
15 19
16struct WriteRecord { 20struct WriteRecord {
@@ -81,6 +85,7 @@ private:
81 bool mutable_memory; 85 bool mutable_memory;
82 std::shared_ptr<TestMemory> test_memory; 86 std::shared_ptr<TestMemory> test_memory;
83 std::vector<WriteRecord> write_records; 87 std::vector<WriteRecord> write_records;
88 Memory::PageTable* page_table = nullptr;
84}; 89};
85 90
86} // namespace ArmTests 91} // namespace ArmTests