summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-04-02 19:24:39 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-06-27 17:36:06 +0200
commitbece52cd810197e905416fa46a4ed484caa41db5 (patch)
tree2d02c417645d8c665c82bc37498de1dd851d02f7 /src/core
parentGeneral: Cleanup legacy code. (diff)
downloadyuzu-bece52cd810197e905416fa46a4ed484caa41db5.tar
yuzu-bece52cd810197e905416fa46a4ed484caa41db5.tar.gz
yuzu-bece52cd810197e905416fa46a4ed484caa41db5.tar.bz2
yuzu-bece52cd810197e905416fa46a4ed484caa41db5.tar.lz
yuzu-bece52cd810197e905416fa46a4ed484caa41db5.tar.xz
yuzu-bece52cd810197e905416fa46a4ed484caa41db5.tar.zst
yuzu-bece52cd810197e905416fa46a4ed484caa41db5.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/cpu_manager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/cpu_manager.cpp b/src/core/cpu_manager.cpp
index c0974ee38..b7c2a7832 100644
--- a/src/core/cpu_manager.cpp
+++ b/src/core/cpu_manager.cpp
@@ -227,7 +227,6 @@ void CpuManager::SingleCoreRunGuestLoop() {
auto& arm_interface = thread->ArmInterface();
system.EnterDynarmicProfile();
if (!physical_core->IsInterrupted()) {
- system.CoreTiming().ResetTicks();
arm_interface.Run();
physical_core = &kernel.CurrentPhysicalCore();
}
@@ -285,6 +284,7 @@ void CpuManager::PreemptSingleCore(bool from_running_enviroment) {
current_thread->SetPhantomMode(false);
}
current_core.store((current_core + 1) % Core::Hardware::NUM_CPU_CORES);
+ system.CoreTiming().ResetTicks();
scheduler.Unload();
auto& next_scheduler = system.Kernel().Scheduler(current_core);
Common::Fiber::YieldTo(current_thread->GetHostContext(), next_scheduler.ControlContext());