summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
authorGravatar Subv2018-05-30 13:33:57 -0500
committerGravatar Subv2018-05-30 21:36:29 -0500
commitc02d7c8ce7c7b0c80cdeb5b070be2ebd855741ff (patch)
treea60a407b4472f946506e1951dd5b24e72215af43 /src/core/hle/kernel/thread.cpp
parentKernel/SVC: Support special core values -2 and -3 in svcSetThreadCoreMask. (diff)
downloadyuzu-c02d7c8ce7c7b0c80cdeb5b070be2ebd855741ff.tar.gz
yuzu-c02d7c8ce7c7b0c80cdeb5b070be2ebd855741ff.tar.xz
yuzu-c02d7c8ce7c7b0c80cdeb5b070be2ebd855741ff.zip
Kernel/Thread: Corrected a typo that caused the affinity mask to never be changed.
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
-rw-r--r--src/core/hle/kernel/thread.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index 391d8990f..0075e4a0f 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -460,13 +460,13 @@ void Thread::UpdatePriority() {
460 460
461void Thread::ChangeCore(u32 core, u64 mask) { 461void Thread::ChangeCore(u32 core, u64 mask) {
462 ideal_core = core; 462 ideal_core = core;
463 mask = mask; 463 affinity_mask = mask;
464 464
465 if (status != THREADSTATUS_READY) { 465 if (status != THREADSTATUS_READY) {
466 return; 466 return;
467 } 467 }
468 468
469 boost::optional<s32> new_processor_id{GetNextProcessorId(mask)}; 469 boost::optional<s32> new_processor_id{GetNextProcessorId(affinity_mask)};
470 470
471 if (!new_processor_id) { 471 if (!new_processor_id) {
472 new_processor_id = processor_id; 472 new_processor_id = processor_id;