Just invalidate blocks on ClearCacheAt().

This makes it safe to call from a jitted syscall, etc.
This commit is contained in:
Unknown W. Brackets
2013-09-01 00:32:43 -07:00
parent 14bcca1f53
commit b558189c37
8 changed files with 14 additions and 14 deletions
+2 -1
View File
@@ -298,8 +298,9 @@ void CBreakPoints::Update(u32 addr)
{
if (MIPSComp::jit && Core_IsInactive())
{
// In case this is a delay slot, clear the previous instruction too.
if (addr != 0)
MIPSComp::jit->ClearCacheAt(addr);
MIPSComp::jit->ClearCacheAt(addr - 4, 8);
else
MIPSComp::jit->ClearCache();
}