mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-20 07:15:38 +00:00
CPU/CodeCache: Fix rewinding on Apple Silicon
This commit is contained in:
parent
7829abc014
commit
6a7dea6908
|
@ -684,6 +684,7 @@ void CPU::CodeCache::InvalidateBlock(Block* block, BlockState new_state)
|
|||
void CPU::CodeCache::InvalidateAllRAMBlocks()
|
||||
{
|
||||
// TODO: maybe combine the backlink into one big instruction flush cache?
|
||||
MemMap::BeginCodeWrite();
|
||||
|
||||
for (Block* block : s_blocks)
|
||||
{
|
||||
|
@ -691,6 +692,7 @@ void CPU::CodeCache::InvalidateAllRAMBlocks()
|
|||
InvalidateBlock(block, BlockState::Invalidated);
|
||||
}
|
||||
|
||||
MemMap::EndCodeWrite();
|
||||
Bus::ClearRAMCodePageFlags();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue