From 8bef7259e3a12f010bb744a140798aaa3cf17823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sat, 7 Jan 2017 23:03:48 +0100 Subject: Add the g_ prefix to the jit global Jan 04 22:55:01 fwiw, it looks like there are new warnings in the RegCache code Jan 04 22:55:04 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. --- Source/Core/Common/BreakPoints.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'Source/Core/Common/BreakPoints.cpp') diff --git a/Source/Core/Common/BreakPoints.cpp b/Source/Core/Common/BreakPoints.cpp index 60cec377c7..75a074788b 100644 --- a/Source/Core/Common/BreakPoints.cpp +++ b/Source/Core/Common/BreakPoints.cpp @@ -65,8 +65,8 @@ void BreakPoints::Add(const TBreakPoint& bp) if (!IsAddressBreakPoint(bp.iAddress)) { m_BreakPoints.push_back(bp); - if (jit) - jit->GetBlockCache()->InvalidateICache(bp.iAddress, 4, true); + if (g_jit) + g_jit->GetBlockCache()->InvalidateICache(bp.iAddress, 4, true); } } @@ -81,8 +81,8 @@ void BreakPoints::Add(u32 em_address, bool temp) m_BreakPoints.push_back(pt); - if (jit) - jit->GetBlockCache()->InvalidateICache(em_address, 4, true); + if (g_jit) + g_jit->GetBlockCache()->InvalidateICache(em_address, 4, true); } } @@ -93,8 +93,8 @@ void BreakPoints::Remove(u32 em_address) if (i->iAddress == em_address) { m_BreakPoints.erase(i); - if (jit) - jit->GetBlockCache()->InvalidateICache(em_address, 4, true); + if (g_jit) + g_jit->GetBlockCache()->InvalidateICache(em_address, 4, true); return; } } @@ -102,11 +102,11 @@ void BreakPoints::Remove(u32 em_address) void BreakPoints::Clear() { - if (jit) + if (g_jit) { for (const TBreakPoint& bp : m_BreakPoints) { - jit->GetBlockCache()->InvalidateICache(bp.iAddress, 4, true); + g_jit->GetBlockCache()->InvalidateICache(bp.iAddress, 4, true); } } @@ -120,8 +120,8 @@ void BreakPoints::ClearAllTemporary() { if (bp->bTemporary) { - if (jit) - jit->GetBlockCache()->InvalidateICache(bp->iAddress, 4, true); + if (g_jit) + g_jit->GetBlockCache()->InvalidateICache(bp->iAddress, 4, true); bp = m_BreakPoints.erase(bp); } else @@ -175,8 +175,8 @@ void MemChecks::Add(const TMemCheck& _rMemoryCheck) m_MemChecks.push_back(_rMemoryCheck); // If this is the first one, clear the JIT cache so it can switch to // watchpoint-compatible code. - if (!had_any && jit) - jit->GetBlockCache()->SchedulateClearCacheThreadSafe(); + if (!had_any && g_jit) + g_jit->GetBlockCache()->SchedulateClearCacheThreadSafe(); } void MemChecks::Remove(u32 _Address) @@ -186,8 +186,8 @@ void MemChecks::Remove(u32 _Address) if (i->StartAddress == _Address) { m_MemChecks.erase(i); - if (!HasAny() && jit) - jit->GetBlockCache()->SchedulateClearCacheThreadSafe(); + if (!HasAny() && g_jit) + g_jit->GetBlockCache()->SchedulateClearCacheThreadSafe(); return; } } -- cgit v1.2.3