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

Method InitializeCPUProviders

pcsx2/VMManager.cpp:2661–2677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2659
2660
2661void VMManager::InitializeCPUProviders()
2662{
2663#ifdef _M_X86 // TODO(Stenzek): Remove me once EE/VU/IOP recs are added.
2664 recCpu.Reserve();
2665 psxRec.Reserve();
2666
2667 CpuMicroVU0.Reserve();
2668 CpuMicroVU1.Reserve();
2669#else
2670 // Despite not having any VU recompilers on ARM64, therefore no MTVU,
2671 // we still need the thread alive. Otherwise the read and write positions
2672 // of the ring buffer wont match, and various systems in the emulator end up deadlocked.
2673 vu1Thread.Open();
2674#endif
2675
2676 VifUnpackSSE_Init();
2677}
2678
2679void VMManager::ShutdownCPUProviders()
2680{

Callers

nothing calls this directly

Calls 3

VifUnpackSSE_InitFunction · 0.50
ReserveMethod · 0.45
OpenMethod · 0.45

Tested by

no test coverage detected