diff options
author | Lioncash <mathew1800@gmail.com> | 2018-12-28 03:14:59 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-12-28 03:48:49 +0100 |
commit | f80bc712ea60d10db10af6c752218bd3512e22b0 (patch) | |
tree | 506970e7559e2b58c4cac84517835527183e4a4c /src/core/hle/kernel/svc.cpp | |
parent | kernel/thread: Move process thread initialization into process.cpp (diff) | |
download | yuzu-f80bc712ea60d10db10af6c752218bd3512e22b0.tar yuzu-f80bc712ea60d10db10af6c752218bd3512e22b0.tar.gz yuzu-f80bc712ea60d10db10af6c752218bd3512e22b0.tar.bz2 yuzu-f80bc712ea60d10db10af6c752218bd3512e22b0.tar.lz yuzu-f80bc712ea60d10db10af6c752218bd3512e22b0.tar.xz yuzu-f80bc712ea60d10db10af6c752218bd3512e22b0.tar.zst yuzu-f80bc712ea60d10db10af6c752218bd3512e22b0.zip |
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r-- | src/core/hle/kernel/svc.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 2e80b48c2..18fb3c44d 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp @@ -1220,10 +1220,10 @@ static ResultCode CreateThread(Handle* out_handle, VAddr entry_point, u64 arg, V auto* const current_process = Core::CurrentProcess(); - if (processor_id == THREADPROCESSORID_DEFAULT) { - // Set the target CPU to the one specified in the process' exheader. - processor_id = current_process->GetDefaultProcessorID(); - ASSERT(processor_id != THREADPROCESSORID_DEFAULT); + if (processor_id == THREADPROCESSORID_IDEAL) { + // Set the target CPU to the one specified by the process. + processor_id = current_process->GetIdealCore(); + ASSERT(processor_id != THREADPROCESSORID_IDEAL); } switch (processor_id) { @@ -1632,13 +1632,13 @@ static ResultCode SetThreadCoreMask(Handle thread_handle, u32 core, u64 mask) { return ERR_INVALID_HANDLE; } - if (core == static_cast<u32>(THREADPROCESSORID_DEFAULT)) { - const u8 default_processor_id = thread->GetOwnerProcess()->GetDefaultProcessorID(); + if (core == static_cast<u32>(THREADPROCESSORID_IDEAL)) { + const u8 ideal_cpu_core = thread->GetOwnerProcess()->GetIdealCore(); - ASSERT(default_processor_id != static_cast<u8>(THREADPROCESSORID_DEFAULT)); + ASSERT(ideal_cpu_core != static_cast<u8>(THREADPROCESSORID_IDEAL)); - // Set the target CPU to the one specified in the process' exheader. - core = default_processor_id; + // Set the target CPU to the ideal core specified by the process. + core = ideal_cpu_core; mask = 1ULL << core; } |