mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-17 04:36:36 +00:00
dyncom: Reset the context into user mode correctly
The other mode was system mode.
This commit is contained in:
parent
3c3831906b
commit
0f941d0245
@ -93,7 +93,7 @@ void ARM_DynCom::ResetContext(Core::ThreadContext& context, u32 stack_top, u32 e
|
|||||||
context.cpu_registers[0] = arg;
|
context.cpu_registers[0] = arg;
|
||||||
context.pc = entry_point;
|
context.pc = entry_point;
|
||||||
context.sp = stack_top;
|
context.sp = stack_top;
|
||||||
context.cpsr = 0x1F | ((entry_point & 1) << 5); // Usermode and THUMB mode
|
context.cpsr = USER32MODE | ((entry_point & 1) << 5); // Usermode and THUMB mode
|
||||||
}
|
}
|
||||||
|
|
||||||
void ARM_DynCom::SaveContext(Core::ThreadContext& ctx) {
|
void ARM_DynCom::SaveContext(Core::ThreadContext& ctx) {
|
||||||
|
Loading…
Reference in New Issue
Block a user