mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-26 06:00:05 +00:00
arm_test_common: Make file static variable a member variable of the testing environment
Gets rid of file-static behavior.
This commit is contained in:
parent
a44475207c
commit
a8bb1eb39f
@ -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)) {
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user