summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2014-08-28 18:07:45 -0400
committerbunnei <bunneidev@gmail.com>2014-08-28 18:07:45 -0400
commit06864c93fdf41ed383aadc3a76c40cb4725051b0 (patch)
tree5b2f042cae820f5b8ad622731bc378247fac7788 /src/core/hle/kernel
parent7122c46937b2382879de4fbee1c3eaf50c9c35b4 (diff)
parent6966fdf02578750f31098f23f1f14ebb4f642e2a (diff)
Merge pull request #80 from bunnei/fix-latest-libctru
Fixes Citra for the latest changes made to the "refactor" branch of libctru. - For reference, see: https://github.com/smealum/ctrulib/tree/refactor/libctru
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/thread.cpp5
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;
}