mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-27 10:15:41 -04: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()
|
void CPU::CodeCache::InvalidateAllRAMBlocks()
|
||||||
{
|
{
|
||||||
// TODO: maybe combine the backlink into one big instruction flush cache?
|
// TODO: maybe combine the backlink into one big instruction flush cache?
|
||||||
|
MemMap::BeginCodeWrite();
|
||||||
|
|
||||||
for (Block* block : s_blocks)
|
for (Block* block : s_blocks)
|
||||||
{
|
{
|
||||||
@ -691,6 +692,7 @@ void CPU::CodeCache::InvalidateAllRAMBlocks()
|
|||||||
InvalidateBlock(block, BlockState::Invalidated);
|
InvalidateBlock(block, BlockState::Invalidated);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MemMap::EndCodeWrite();
|
||||||
Bus::ClearRAMCodePageFlags();
|
Bus::ClearRAMCodePageFlags();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user