Jelajahi Sumber

Kernel/Thread: Corrected a typo that caused the affinity mask to never be changed.

Subv 8 tahun lalu
induk
melakukan
c02d7c8ce7
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      src/core/hle/kernel/thread.cpp

+ 2 - 2
src/core/hle/kernel/thread.cpp

@@ -460,13 +460,13 @@ void Thread::UpdatePriority() {
 
 void Thread::ChangeCore(u32 core, u64 mask) {
     ideal_core = core;
-    mask = mask;
+    affinity_mask = mask;
 
     if (status != THREADSTATUS_READY) {
         return;
     }
 
-    boost::optional<s32> new_processor_id{GetNextProcessorId(mask)};
+    boost::optional<s32> new_processor_id{GetNextProcessorId(affinity_mask)};
 
     if (!new_processor_id) {
         new_processor_id = processor_id;