mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-20 15:25:38 +00:00
CPU/CodeCache: Fix page error when rewinding
This commit is contained in:
parent
05b42f34eb
commit
21bbe5c76c
|
@ -689,7 +689,16 @@ void CPU::CodeCache::InvalidateAllRAMBlocks()
|
||||||
for (Block* block : s_blocks)
|
for (Block* block : s_blocks)
|
||||||
{
|
{
|
||||||
if (AddressInRAM(block->pc))
|
if (AddressInRAM(block->pc))
|
||||||
|
{
|
||||||
InvalidateBlock(block, BlockState::Invalidated);
|
InvalidateBlock(block, BlockState::Invalidated);
|
||||||
|
block->next_block_in_page = nullptr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (PageProtectionInfo& ppi : s_page_protection)
|
||||||
|
{
|
||||||
|
ppi.first_block_in_page = nullptr;
|
||||||
|
ppi.last_block_in_page = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
MemMap::EndCodeWrite();
|
MemMap::EndCodeWrite();
|
||||||
|
|
Loading…
Reference in a new issue