diff options
| author | Léo Lam <leo@innovatetechnologi.es> | 2017-01-07 23:03:48 +0100 |
|---|---|---|
| committer | Léo Lam <leo@innovatetechnologi.es> | 2017-01-07 23:19:49 +0100 |
| commit | 8bef7259e3a12f010bb744a140798aaa3cf17823 (patch) | |
| tree | 1a60d93549dab2b843a0c96c4b5186d818d96dc8 /Source/Core/Common/BreakPoints.cpp | |
| parent | 3fdcbbdd9273afb294d460dac0dcc52d991ab739 (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/Core/Common/BreakPoints.cpp')
| -rw-r--r-- | Source/Core/Common/BreakPoints.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
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; } } |
