mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-26 23:30:09 +00:00
Thread: Fixed bug with ResetThread where cpu_registers[15] was being incorrectly set
This commit is contained in:
parent
6fd870e6bb
commit
b31f7293a6
@ -113,7 +113,7 @@ void ResetThread(Thread* t, u32 arg, s32 lowest_priority) {
|
|||||||
memset(&t->context, 0, sizeof(ThreadContext));
|
memset(&t->context, 0, sizeof(ThreadContext));
|
||||||
|
|
||||||
t->context.cpu_registers[0] = arg;
|
t->context.cpu_registers[0] = arg;
|
||||||
t->context.pc = t->context.cpu_registers[15] = t->entry_point;
|
t->context.pc = t->context.reg_15 = t->entry_point;
|
||||||
t->context.sp = t->stack_top;
|
t->context.sp = t->stack_top;
|
||||||
t->context.cpsr = 0x1F; // Usermode
|
t->context.cpsr = 0x1F; // Usermode
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user