| 2746 | } |
| 2747 | |
| 2748 | void VMManager::Execute() |
| 2749 | { |
| 2750 | // Check for interpreter<->recompiler switches. |
| 2751 | if (std::exchange(s_cpu_implementation_changed, false)) |
| 2752 | { |
| 2753 | // We need to switch the cpus out, and reset the new ones if so. |
| 2754 | UpdateCPUImplementations(); |
| 2755 | Internal::ClearCPUExecutionCaches(); |
| 2756 | vtlb_ResetFastmem(); |
| 2757 | } |
| 2758 | |
| 2759 | // Execute until we're asked to stop. |
| 2760 | Cpu->Execute(); |
| 2761 | } |
| 2762 | |
| 2763 | void VMManager::IdlePollUpdate() |
| 2764 | { |