mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
Merge pull request #2548 from endrift/jit-nulls
Common: Add null checks when adding and removing breakpoints
This commit is contained in:
commit
cab9f7b4da
@ -170,7 +170,7 @@ void MemChecks::Add(const TMemCheck& _rMemoryCheck)
|
|||||||
m_MemChecks.push_back(_rMemoryCheck);
|
m_MemChecks.push_back(_rMemoryCheck);
|
||||||
// If this is the first one, clear the JIT cache so it can switch to
|
// If this is the first one, clear the JIT cache so it can switch to
|
||||||
// watchpoint-compatible code.
|
// watchpoint-compatible code.
|
||||||
if (!had_any)
|
if (!had_any && jit)
|
||||||
jit->ClearCache();
|
jit->ClearCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -184,7 +184,7 @@ void MemChecks::Remove(u32 _Address)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!HasAny())
|
if (!HasAny() && jit)
|
||||||
jit->ClearCache();
|
jit->ClearCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user