summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2017-08-22 03:54:29 +0200
committerSubv <subv2112@gmail.com>2017-08-22 03:54:29 +0200
commitfa228ca637b84e6441879769d54a531ab6aba113 (patch)
tree92729fe35a289864815b9c791ecdbcac511c1e98 /src/core/hle
parentMerge pull request #2872 from wwylele/sw-geo-factor (diff)
downloadyuzu-fa228ca637b84e6441879769d54a531ab6aba113.tar
yuzu-fa228ca637b84e6441879769d54a531ab6aba113.tar.gz
yuzu-fa228ca637b84e6441879769d54a531ab6aba113.tar.bz2
yuzu-fa228ca637b84e6441879769d54a531ab6aba113.tar.lz
yuzu-fa228ca637b84e6441879769d54a531ab6aba113.tar.xz
yuzu-fa228ca637b84e6441879769d54a531ab6aba113.tar.zst
yuzu-fa228ca637b84e6441879769d54a531ab6aba113.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/kernel/thread.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index f5f2eb2f7..b957c45dd 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -478,8 +478,6 @@ void Thread::BoostPriority(s32 priority) {
}
SharedPtr<Thread> SetupMainThread(u32 entry_point, s32 priority) {
- DEBUG_ASSERT(!GetCurrentThread());
-
// Initialize new "main" thread
auto thread_res = Thread::Create("main", entry_point, priority, 0, THREADPROCESSORID_0,
Memory::HEAP_VADDR_END);
@@ -489,9 +487,7 @@ SharedPtr<Thread> SetupMainThread(u32 entry_point, s32 priority) {
thread->context.fpscr =
FPSCR_DEFAULT_NAN | FPSCR_FLUSH_TO_ZERO | FPSCR_ROUND_TOZERO | FPSCR_IXC; // 0x03C00010
- // Run new "main" thread
- SwitchContext(thread.get());
-
+ // Note: The newly created thread will be run when the scheduler fires.
return thread;
}