mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-04 01:13:35 +00:00
JitCache: Fix links_to updates on destroying blocks.
This commit is contained in:
parent
46c33df485
commit
c9c5437cb8
@ -325,13 +325,16 @@ void JitBaseBlockCache::DestroyBlock(JitBlock& block, bool invalidate)
|
|||||||
UnlinkBlock(block);
|
UnlinkBlock(block);
|
||||||
|
|
||||||
// Delete linking addresses
|
// Delete linking addresses
|
||||||
auto it = links_to.equal_range(block.effectiveAddress);
|
for (const auto& e : block.linkData)
|
||||||
while (it.first != it.second)
|
|
||||||
{
|
{
|
||||||
if (it.first->second == &block)
|
auto it = links_to.equal_range(e.exitAddress);
|
||||||
it.first = links_to.erase(it.first);
|
while (it.first != it.second)
|
||||||
else
|
{
|
||||||
it.first++;
|
if (it.first->second == &block)
|
||||||
|
it.first = links_to.erase(it.first);
|
||||||
|
else
|
||||||
|
it.first++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Raise an signal if we are going to call this block again
|
// Raise an signal if we are going to call this block again
|
||||||
|
Loading…
x
Reference in New Issue
Block a user