summaryrefslogtreecommitdiffstats
path: root/src/tests/core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-07-20 23:51:29 +0200
committerLioncash <mathew1800@gmail.com>2018-07-20 23:52:37 +0200
commita8bb1eb39fe2cf62545798a493f6350c3d1d5728 (patch)
tree27d2e7b72c14191c6846af5f5418f67e1ccae3da /src/tests/core
parentarm_test_common: Add missing header guard (diff)
downloadyuzu-a8bb1eb39fe2cf62545798a493f6350c3d1d5728.tar
yuzu-a8bb1eb39fe2cf62545798a493f6350c3d1d5728.tar.gz
yuzu-a8bb1eb39fe2cf62545798a493f6350c3d1d5728.tar.bz2
yuzu-a8bb1eb39fe2cf62545798a493f6350c3d1d5728.tar.lz
yuzu-a8bb1eb39fe2cf62545798a493f6350c3d1d5728.tar.xz
yuzu-a8bb1eb39fe2cf62545798a493f6350c3d1d5728.tar.zst
yuzu-a8bb1eb39fe2cf62545798a493f6350c3d1d5728.zip
Diffstat (limited to 'src/tests/core')
-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 @@
namespace ArmTests {
-static Memory::PageTable* page_table = nullptr;
-
TestEnvironment::TestEnvironment(bool mutable_memory_)
: mutable_memory(mutable_memory_), test_memory(std::make_shared<TestMemory>(this)) {
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 @@
#include "common/common_types.h"
#include "core/memory_hook.h"
+namespace Memory {
+struct PageTable;
+}
+
namespace ArmTests {
struct WriteRecord {
@@ -81,6 +85,7 @@ private:
bool mutable_memory;
std::shared_ptr<TestMemory> test_memory;
std::vector<WriteRecord> write_records;
+ Memory::PageTable* page_table = nullptr;
};
} // namespace ArmTests