diff options
author | bunnei <bunneidev@gmail.com> | 2014-08-27 05:58:03 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-08-28 23:51:49 +0200 |
commit | 304999dfebea595ea4a21082ed2ef9ea3f3d907f (patch) | |
tree | 12afac34844f348a342680441507e427f0f10441 /src/core/hle | |
parent | srv::Initialize: Return "success" status code. (diff) | |
download | yuzu-304999dfebea595ea4a21082ed2ef9ea3f3d907f.tar yuzu-304999dfebea595ea4a21082ed2ef9ea3f3d907f.tar.gz yuzu-304999dfebea595ea4a21082ed2ef9ea3f3d907f.tar.bz2 yuzu-304999dfebea595ea4a21082ed2ef9ea3f3d907f.tar.lz yuzu-304999dfebea595ea4a21082ed2ef9ea3f3d907f.tar.xz yuzu-304999dfebea595ea4a21082ed2ef9ea3f3d907f.tar.zst yuzu-304999dfebea595ea4a21082ed2ef9ea3f3d907f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/thread.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 554ec9756..8bd9ca1a1 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp @@ -117,6 +117,11 @@ void ResetThread(Thread* t, u32 arg, s32 lowest_priority) { t->context.sp = t->stack_top; t->context.cpsr = 0x1F; // Usermode + // TODO(bunnei): This instructs the CPU core to start the execution as if it is "resuming" a + // thread. This is somewhat Sky-Eye specific, and should be re-architected in the future to be + // agnostic of the CPU core. + t->context.mode = 8; + if (t->current_priority < lowest_priority) { t->current_priority = t->initial_priority; } |