VMManager: Clear protected pages before changing extra memory mode

This commit is contained in:
Benjamin Moir 2024-05-10 01:57:47 +10:00 committed by Connor McLaughlin
parent 052951fbb0
commit 9b03b236fe
2 changed files with 2 additions and 1 deletions

View File

@ -1376,6 +1376,7 @@ bool VMManager::Initialize(VMBootParameters boot_params)
s_cpu_implementation_changed = false;
UpdateCPUImplementations();
mmap_ResetBlockTracking();
memSetExtraMemMode(EmuConfig.Cpu.ExtraMemory);
Internal::ClearCPUExecutionCaches();
FPControlRegister::SetCurrent(EmuConfig.Cpu.FPUFPCR);
@ -1617,6 +1618,7 @@ void VMManager::Reset()
if (elf_was_changed)
HandleELFChange(false);
mmap_ResetBlockTracking();
memSetExtraMemMode(EmuConfig.Cpu.ExtraMemory);
Internal::ClearCPUExecutionCaches();
memBindConditionalHandlers();

View File

@ -599,7 +599,6 @@ static void recResetRaw()
memset(s_pInstCache, 0, sizeof(EEINST) * s_nInstCacheSize);
recBlocks.Reset();
mmap_ResetBlockTracking();
vtlb_ClearLoadStoreInfo();
g_branch = 0;