summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/scheduler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/kernel/scheduler.cpp')
-rw-r--r--src/core/hle/kernel/scheduler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/kernel/scheduler.cpp b/src/core/hle/kernel/scheduler.cpp
index 00322d997..25fc8a3e8 100644
--- a/src/core/hle/kernel/scheduler.cpp
+++ b/src/core/hle/kernel/scheduler.cpp
@@ -605,6 +605,7 @@ void Scheduler::OnThreadStart() {
605void Scheduler::Unload() { 605void Scheduler::Unload() {
606 Thread* thread = current_thread.get(); 606 Thread* thread = current_thread.get();
607 if (thread) { 607 if (thread) {
608 thread->SetContinuousOnSVC(false);
608 thread->last_running_ticks = system.CoreTiming().GetCPUTicks(); 609 thread->last_running_ticks = system.CoreTiming().GetCPUTicks();
609 thread->SetIsRunning(false); 610 thread->SetIsRunning(false);
610 if (!thread->IsHLEThread()) { 611 if (!thread->IsHLEThread()) {
@@ -697,6 +698,7 @@ void Scheduler::SwitchContext() {
697 698
698 // Save context for previous thread 699 // Save context for previous thread
699 if (previous_thread) { 700 if (previous_thread) {
701 previous_thread->SetContinuousOnSVC(false);
700 previous_thread->last_running_ticks = system.CoreTiming().GetCPUTicks(); 702 previous_thread->last_running_ticks = system.CoreTiming().GetCPUTicks();
701 if (!previous_thread->IsHLEThread()) { 703 if (!previous_thread->IsHLEThread()) {
702 auto& cpu_core = system.ArmInterface(core_id); 704 auto& cpu_core = system.ArmInterface(core_id);