MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / ClearCPUExecutionCaches

Method ClearCPUExecutionCaches

pcsx2/VMManager.cpp:2727–2746  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2725}
2726
2727void VMManager::Internal::ClearCPUExecutionCaches()
2728{
2729 Cpu->Reset();
2730 psxCpu->Reset();
2731
2732#ifdef _M_X86 // TODO(Stenzek): Remove me once EE/VU/IOP recs are added.
2733 // mVU's VU0 needs to be properly initialized for macro mode even if it's not used for micro mode!
2734 if (CHECK_EEREC && !EmuConfig.Cpu.Recompiler.EnableVU0)
2735 CpuMicroVU0.Reset();
2736#endif
2737
2738 CpuVU0->Reset();
2739 CpuVU1->Reset();
2740
2741 if constexpr (newVifDynaRec)
2742 {
2743 dVifReset(0);
2744 dVifReset(1);
2745 }
2746}
2747
2748void VMManager::Execute()
2749{

Callers

nothing calls this directly

Calls 2

dVifResetFunction · 0.50
ResetMethod · 0.45

Tested by

no test coverage detected