[Debugger] Flush recompiler code on memory viewer changes
This commit is contained in:
parent
f5debf8304
commit
29dcf75b49
|
@ -37,6 +37,7 @@ public:
|
|||
Remove_DMA,
|
||||
Remove_StoreInstruc,
|
||||
Remove_Cheats,
|
||||
Remove_MemViewer,
|
||||
};
|
||||
|
||||
typedef void(*DelayFunc)();
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue