mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-06 12:45:21 +02:00
Just invalidate blocks on ClearCacheAt().
This makes it safe to call from a jitted syscall, etc.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user