mirror of
https://github.com/stenzek/duckstation.git
synced 2024-11-26 23:50:31 +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)
|
||||
{
|
||||
if (AddressInRAM(block->pc))
|
||||
{
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user