mirror of https://github.com/PCSX2/pcsx2.git
VMManager: Clear protected pages before changing extra memory mode
This commit is contained in:
parent
052951fbb0
commit
9b03b236fe
|
@ -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();
|
||||
|
|
|
@ -599,7 +599,6 @@ static void recResetRaw()
|
|||
memset(s_pInstCache, 0, sizeof(EEINST) * s_nInstCacheSize);
|
||||
|
||||
recBlocks.Reset();
|
||||
mmap_ResetBlockTracking();
|
||||
vtlb_ClearLoadStoreInfo();
|
||||
|
||||
g_branch = 0;
|
||||
|
|
Loading…
Reference in New Issue