citra-emu
/
citra-canary
Archived
1
0
Fork 0

Merge pull request #2620 from FernandoS27/syscore_error

Refined thread launch on syscore error messages
This commit is contained in:
bunnei 2017-03-15 21:17:43 -04:00 committed by GitHub
commit 709e4fa5d2
1 changed files with 15 additions and 5 deletions

View File

@ -556,11 +556,21 @@ static ResultCode CreateThread(Kernel::Handle* out_handle, s32 priority, u32 ent
break; break;
} }
if (processor_id == THREADPROCESSORID_1 || processor_id == THREADPROCESSORID_ALL || if (processor_id == THREADPROCESSORID_ALL) {
(processor_id == THREADPROCESSORID_DEFAULT && LOG_INFO(Kernel_SVC,
Kernel::g_current_process->ideal_processor == THREADPROCESSORID_1)) { "Newly created thread is allowed to be run in any Core, unimplemented.");
LOG_WARNING(Kernel_SVC, }
"Newly created thread is allowed to be run in the SysCore, unimplemented.");
if (processor_id == THREADPROCESSORID_DEFAULT &&
Kernel::g_current_process->ideal_processor == THREADPROCESSORID_1) {
LOG_WARNING(
Kernel_SVC,
"Newly created thread is allowed to be run in the SysCore (Core1), unimplemented.");
}
if (processor_id == THREADPROCESSORID_1) {
LOG_ERROR(Kernel_SVC,
"Newly created thread must run in the SysCore (Core1), unimplemented.");
} }
CASCADE_RESULT(SharedPtr<Thread> thread, Kernel::Thread::Create(name, entry_point, priority, CASCADE_RESULT(SharedPtr<Thread> thread, Kernel::Thread::Create(name, entry_point, priority,