summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2014-08-27 05:58:03 +0200
committerbunnei <bunneidev@gmail.com>2014-08-31 05:23:32 +0200
commit3ade84cb7b9e0170b0025aa6af0ec0ed4097899c (patch)
tree131ccfe7c3f6a466acfd9029334d14999986cbd0 /src/core/hle/kernel/thread.cpp
parentsrv::Initialize: Return "success" status code. (diff)
downloadyuzu-3ade84cb7b9e0170b0025aa6af0ec0ed4097899c.tar
yuzu-3ade84cb7b9e0170b0025aa6af0ec0ed4097899c.tar.gz
yuzu-3ade84cb7b9e0170b0025aa6af0ec0ed4097899c.tar.bz2
yuzu-3ade84cb7b9e0170b0025aa6af0ec0ed4097899c.tar.lz
yuzu-3ade84cb7b9e0170b0025aa6af0ec0ed4097899c.tar.xz
yuzu-3ade84cb7b9e0170b0025aa6af0ec0ed4097899c.tar.zst
yuzu-3ade84cb7b9e0170b0025aa6af0ec0ed4097899c.zip
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
-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;
}