diff options
| author | CrystalGamma <dolphin@crystalgamma.de> | 2018-12-02 14:16:17 +0100 |
|---|---|---|
| committer | CrystalGamma <dolphin@crystalgamma.de> | 2018-12-15 01:58:58 +0100 |
| commit | 2f490e44fbc454e1b96d0a8c6184bf74a6eac73e (patch) | |
| tree | 0332e2727f872621c8c422876e53bab19254e167 /Source/UnitTests/Core/PageFaultTest.cpp | |
| parent | 3fa81f39fb577214d2fe83b51eac8ce2430aaa31 (diff) | |
stop using g_jit outside of JitInterface
Replace g_jit in x86-64 ASM routines code by m_jit member reference
Diffstat (limited to 'Source/UnitTests/Core/PageFaultTest.cpp')
| -rw-r--r-- | Source/UnitTests/Core/PageFaultTest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/UnitTests/Core/PageFaultTest.cpp b/Source/UnitTests/Core/PageFaultTest.cpp index f804a76883..7b6210d7b9 100644 --- a/Source/UnitTests/Core/PageFaultTest.cpp +++ b/Source/UnitTests/Core/PageFaultTest.cpp @@ -8,6 +8,7 @@ #include "Common/Timer.h" #include "Core/MemTools.h" #include "Core/PowerPC/JitCommon/JitBase.h" +#include "Core/PowerPC/JitInterface.h" // include order is important #include <gtest/gtest.h> // NOLINT @@ -56,7 +57,7 @@ TEST(PageFault, PageFault) Common::WriteProtectMemory(data, PAGE_GRAN, false); PageFaultFakeJit pfjit; - g_jit = &pfjit; + JitInterface::SetJit(&pfjit); pfjit.m_data = data; auto start = std::chrono::high_resolution_clock::now(); @@ -67,7 +68,7 @@ TEST(PageFault, PageFault) ((unsigned long long)std::chrono::duration_cast<std::chrono::nanoseconds>(diff).count()) EMM::UninstallExceptionHandler(); - g_jit = nullptr; + JitInterface::SetJit(nullptr); printf("page fault timing:\n"); printf("start->HandleFault %llu ns\n", AS_NS(pfjit.m_pre_unprotect_time - start)); |
