summaryrefslogtreecommitdiff
path: root/Source/UnitTests/Core/PageFaultTest.cpp
diff options
context:
space:
mode:
authorMatthew Parlane <parlane@gmail.com>2017-01-08 13:19:16 +1300
committerGitHub <noreply@github.com>2017-01-08 13:19:16 +1300
commit7a5fe4b7ed64be587118afc34aa42c83dc733812 (patch)
treee248b52938a6109fc98e01315493723ba50eac03 /Source/UnitTests/Core/PageFaultTest.cpp
parentc89aa79380cfa9dfd9bb9c52f0574f85e20aeece (diff)
parent8bef7259e3a12f010bb744a140798aaa3cf17823 (diff)
Merge pull request #4624 from leoetlino/jit-warning-fixes
Add the g_ prefix to the jit global
Diffstat (limited to 'Source/UnitTests/Core/PageFaultTest.cpp')
-rw-r--r--Source/UnitTests/Core/PageFaultTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/UnitTests/Core/PageFaultTest.cpp b/Source/UnitTests/Core/PageFaultTest.cpp
index 7a1e25885a..5f856b2568 100644
--- a/Source/UnitTests/Core/PageFaultTest.cpp
+++ b/Source/UnitTests/Core/PageFaultTest.cpp
@@ -56,7 +56,7 @@ TEST(PageFault, PageFault)
Common::WriteProtectMemory(data, PAGE_GRAN, false);
PageFaultFakeJit pfjit;
- jit = &pfjit;
+ g_jit = &pfjit;
pfjit.m_data = data;
auto start = std::chrono::high_resolution_clock::now();
@@ -67,7 +67,7 @@ TEST(PageFault, PageFault)
((unsigned long long)std::chrono::duration_cast<std::chrono::nanoseconds>(diff).count())
EMM::UninstallExceptionHandler();
- jit = nullptr;
+ g_jit = nullptr;
printf("page fault timing:\n");
printf("start->HandleFault %llu ns\n", AS_NS(pfjit.m_pre_unprotect_time - start));