hle: kernel: KThread: Fix ThreadType definition.

This commit is contained in:
bunnei 2021-01-01 01:04:30 -08:00
parent 4782985013
commit 0530292b97
5 changed files with 12 additions and 11 deletions

View file

@ -38,8 +38,7 @@ namespace {
*/
void SetupMainThread(Core::System& system, Process& owner_process, u32 priority, VAddr stack_top) {
const VAddr entry_point = owner_process.PageTable().GetCodeRegionStart();
ThreadType type = THREADTYPE_USER;
auto thread_res = KThread::Create(system, type, "main", entry_point, priority, 0,
auto thread_res = KThread::Create(system, ThreadType::User, "main", entry_point, priority, 0,
owner_process.GetIdealCore(), stack_top, &owner_process);
std::shared_ptr<KThread> thread = std::move(thread_res).Unwrap();