diff options
| author | 2014-06-05 23:19:55 -0400 | |
|---|---|---|
| committer | 2014-06-13 09:51:08 -0400 | |
| commit | b774b8b04e50ad709381506a80e881a1a1471b0f (patch) | |
| tree | 38dc778ae64d4facc277a861430efd948335b2b9 /src/core/hle/kernel/thread.cpp | |
| parent | Kernel: Made SyncRequest not pure virtual, with a default implementation of e... (diff) | |
| download | yuzu-b774b8b04e50ad709381506a80e881a1a1471b0f.tar.gz yuzu-b774b8b04e50ad709381506a80e881a1a1471b0f.tar.xz yuzu-b774b8b04e50ad709381506a80e881a1a1471b0f.zip | |
Thread: Fixed bug with ResetThread where cpu_registers[15] was being incorrectly set
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 180c14928..6196c352c 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp | |||
| @@ -114,7 +114,7 @@ void ResetThread(Thread* t, u32 arg, s32 lowest_priority) { | |||
| 114 | memset(&t->context, 0, sizeof(ThreadContext)); | 114 | memset(&t->context, 0, sizeof(ThreadContext)); |
| 115 | 115 | ||
| 116 | t->context.cpu_registers[0] = arg; | 116 | t->context.cpu_registers[0] = arg; |
| 117 | t->context.pc = t->context.cpu_registers[15] = t->entry_point; | 117 | t->context.pc = t->context.reg_15 = t->entry_point; |
| 118 | t->context.sp = t->stack_top; | 118 | t->context.sp = t->stack_top; |
| 119 | t->context.cpsr = 0x1F; // Usermode | 119 | t->context.cpsr = 0x1F; // Usermode |
| 120 | 120 | ||