VERY experimental Nintendo Switch 2 emulator
C++
Scheduler: Correct assert.
Fernando Sahmkowe501cbe5b812
diff --git a/src/core/hle/kernel/scheduler.cpp b/src/core/hle/kernel/scheduler.cppindex ae89e908f5..4e2a5adf38 100644--- a/src/core/hle/kernel/scheduler.cpp+++ b/src/core/hle/kernel/scheduler.cpp@@ -606,10 +606,8 @@ void Scheduler::SwitchContextStep2() {auto& cpu_core = system.ArmInterface(core_id);new_thread->context_guard.lock();cpu_core.Lock();- ASSERT_MSG(new_thread->GetProcessorID() == s32(this->core_id),- "Thread must be assigned to this core.");- ASSERT_MSG(new_thread->GetStatus() == ThreadStatus::Ready,- "Thread must be ready to become running.");+ ASSERT_MSG(new_thread->GetSchedulingStatus() == ThreadSchedStatus::Runnable,+ "Thread must be runnable.");// Cancel any outstanding wakeup events for this threadnew_thread->SetIsRunning(true);