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:
Lioncash 2018-07-20 17:51:29 -04:00
parent a44475207c
commit a8bb1eb39f
2 changed files with 5 additions and 2 deletions

View File

@ -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)) {

View File

@ -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