summaryrefslogtreecommitdiff
path: root/Source/UnitTests/Core/PageFaultTest.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@innovatetechnologi.es>2017-01-07 23:03:48 +0100
committerLéo Lam <leo@innovatetechnologi.es>2017-01-07 23:19:49 +0100
commit8bef7259e3a12f010bb744a140798aaa3cf17823 (patch)
tree1a60d93549dab2b843a0c96c4b5186d818d96dc8 /Source/UnitTests/Core/PageFaultTest.cpp
parent3fdcbbdd9273afb294d460dac0dcc52d991ab739 (diff)
Add the g_ prefix to the jit global
Jan 04 22:55:01 <leoetlino> fwiw, it looks like there are new warnings in the RegCache code Jan 04 22:55:04 <leoetlino> Source/Core/Core/PowerPC/Jit64/FPURegCache.cpp:13:33: warning: declaration shadows a variable in the global namespace [-Wshadow] Jan 04 22:56:19 <@Lioncash> yeah, the jit global should have a g_ prefix. This fixes shadowing warnings and adds the g_ prefix to a 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));