mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-08 11:09:58 +00:00
Update cpsr (T)humb bit while creating thread
This commit is contained in:
parent
6e750ae12d
commit
4630209c4c
1 changed files with 1 additions and 1 deletions
|
@ -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; // Usermode
|
context.cpsr = 0x1F | ((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 a new issue