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

Method CheckForCPUConfigChanges

pcsx2/VMManager.cpp:2947–2971  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2945}
2946
2947void VMManager::CheckForCPUConfigChanges(const Pcsx2Config& old_config)
2948{
2949 if (EmuConfig.Cpu == old_config.Cpu && EmuConfig.Gamefixes == old_config.Gamefixes &&
2950 EmuConfig.Speedhacks == old_config.Speedhacks && EmuConfig.Profiler == old_config.Profiler)
2951 {
2952 return;
2953 }
2954
2955 Console.WriteLn("Updating CPU configuration...");
2956 FPControlRegister::SetCurrent(EmuConfig.Cpu.FPUFPCR);
2957 Internal::ClearCPUExecutionCaches();
2958 memBindConditionalHandlers();
2959
2960 if (EmuConfig.Cpu.Recompiler.EnableFastmem != old_config.Cpu.Recompiler.EnableFastmem)
2961 vtlb_ResetFastmem();
2962
2963 // did we toggle recompilers?
2964 if (EmuConfig.Cpu.CpusChanged(old_config.Cpu))
2965 {
2966 // This has to be done asynchronously, since we're still executing the
2967 // cpu when this function is called. Break the execution as soon as
2968 // possible and reset next time we're called.
2969 s_cpu_implementation_changed = true;
2970 }
2971}
2972
2973void VMManager::CheckForGSConfigChanges(const Pcsx2Config& old_config)
2974{

Callers

nothing calls this directly

Calls 4

vtlb_ResetFastmemFunction · 0.85
CpusChangedMethod · 0.80
WriteLnMethod · 0.45

Tested by

no test coverage detected