summaryrefslogtreecommitdiff
path: root/Source/Core/Common/BreakPoints.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/BreakPoints.cpp')
-rw-r--r--Source/Core/Common/BreakPoints.cpp28
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;
}
}