CPU/CodeCache: Fix crash when jumping to invalid block in recompiler
This commit is contained in:
parent
8f20ffaed3
commit
2e53bf914e
|
@ -400,6 +400,7 @@ CodeBlock* LookupBlock(CodeBlockKey key)
|
|||
|
||||
#ifdef WITH_RECOMPILER
|
||||
SetFastMap(block->GetPC(), block->host_code);
|
||||
AddBlockToHostCodeMap(block);
|
||||
#endif
|
||||
}
|
||||
else
|
||||
|
@ -409,9 +410,7 @@ CodeBlock* LookupBlock(CodeBlockKey key)
|
|||
block = nullptr;
|
||||
}
|
||||
|
||||
iter = s_blocks.emplace(key.bits, block).first;
|
||||
AddBlockToHostCodeMap(block);
|
||||
|
||||
s_blocks.emplace(key.bits, block);
|
||||
return block;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue