CPU/CodeCache: Fix assertion failure when patching in double branch
This commit is contained in:
parent
b38e4b8ba7
commit
a894b295b6
|
@ -652,11 +652,12 @@ void FlushBlock(CodeBlock* block)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// if it's been invalidated it won't be in the page map
|
// if it's been invalidated it won't be in the page map
|
||||||
if (block->invalidated)
|
if (!block->invalidated)
|
||||||
RemoveBlockFromPageMap(block);
|
RemoveBlockFromPageMap(block);
|
||||||
|
|
||||||
UnlinkBlock(block);
|
UnlinkBlock(block);
|
||||||
#ifdef WITH_RECOMPILER
|
#ifdef WITH_RECOMPILER
|
||||||
|
if (!block->invalidated)
|
||||||
RemoveBlockFromHostCodeMap(block);
|
RemoveBlockFromHostCodeMap(block);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue