| 2945 | } |
| 2946 | |
| 2947 | void 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 | |
| 2973 | void VMManager::CheckForGSConfigChanges(const Pcsx2Config& old_config) |
| 2974 | { |
nothing calls this directly
no test coverage detected