From 4822765fefbb81ad55fe4db7561ccf69b9a60bcd Mon Sep 17 00:00:00 2001 From: bunnei Date: Mon, 7 May 2018 21:57:42 -0400 Subject: thread: Initialize ideal_core and mask members. --- src/core/hle/kernel/thread.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 31cf1551d..ac6252eac 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp @@ -266,6 +266,8 @@ ResultVal> Thread::Create(std::string name, VAddr entry_point, thread->nominal_priority = thread->current_priority = priority; thread->last_running_ticks = CoreTiming::GetTicks(); thread->processor_id = processor_id; + thread->ideal_core = processor_id; + thread->mask = 1 << processor_id; thread->wait_objects.clear(); thread->mutex_wait_address = 0; thread->condvar_wait_address = 0; -- cgit v1.2.3