Skip to content

Commit

Permalink
VMManager: Clear protected pages before changing extra memory mode
Browse files Browse the repository at this point in the history
  • Loading branch information
DaZombieKiller authored and stenzek committed May 10, 2024
1 parent 052951f commit 9b03b23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pcsx2/VMManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -1617,6 +1618,7 @@ void VMManager::Reset()
if (elf_was_changed)
HandleELFChange(false);

mmap_ResetBlockTracking();
memSetExtraMemMode(EmuConfig.Cpu.ExtraMemory);
Internal::ClearCPUExecutionCaches();
memBindConditionalHandlers();
Expand Down
1 change: 0 additions & 1 deletion pcsx2/x86/ix86-32/iR5900.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,6 @@ static void recResetRaw()
memset(s_pInstCache, 0, sizeof(EEINST) * s_nInstCacheSize);

recBlocks.Reset();
mmap_ResetBlockTracking();
vtlb_ClearLoadStoreInfo();

g_branch = 0;
Expand Down

0 comments on commit 9b03b23

Please sign in to comment.