[Debugger] Flush recompiler code on memory viewer changes

This commit is contained in:
zilmar 2018-02-19 18:17:35 +11:00
parent f5debf8304
commit 29dcf75b49
2 changed files with 9 additions and 0 deletions

View File

@ -37,6 +37,7 @@ public:
Remove_DMA,
Remove_StoreInstruc,
Remove_Cheats,
Remove_MemViewer,
};
typedef void(*DelayFunc)();

View File

@ -371,6 +371,14 @@ LRESULT CDebugMemoryView::OnMemoryModified(LPNMHDR lpNMHDR)
ProtectMemory(ROM, g_Rom->GetRomSize(), MEM_READONLY);
}
}
if (g_Recompiler != NULL && m_DataVAddrr)
{
g_Recompiler->ClearRecompCode_Virt((m_DataStartLoc + Pos) & ~0xFFF, 0x1000, CRecompiler::Remove_MemViewer);
}
else if (g_Recompiler != NULL)
{
g_Recompiler->ClearRecompCode_Phys((m_DataStartLoc + Pos) & ~0xFFF, 0x1000, CRecompiler::Remove_MemViewer);
}
}
__except_catch()
{