diff options
author | mailwl <mailwl@gmail.com> | 2016-04-08 17:41:09 +0200 |
---|---|---|
committer | mailwl <mailwl@gmail.com> | 2016-04-08 17:41:09 +0200 |
commit | 4630209c4ce99bb05d5493ff16d9ec666d88dbc9 (patch) | |
tree | 0701c5c2a916b689e21aa26f898a3fde35b7b068 /src/core/arm/dyncom/arm_dyncom.cpp | |
parent | Merge pull request #1639 from linkmauve/fix-double-framebuffer-check (diff) | |
download | yuzu-4630209c4ce99bb05d5493ff16d9ec666d88dbc9.tar yuzu-4630209c4ce99bb05d5493ff16d9ec666d88dbc9.tar.gz yuzu-4630209c4ce99bb05d5493ff16d9ec666d88dbc9.tar.bz2 yuzu-4630209c4ce99bb05d5493ff16d9ec666d88dbc9.tar.lz yuzu-4630209c4ce99bb05d5493ff16d9ec666d88dbc9.tar.xz yuzu-4630209c4ce99bb05d5493ff16d9ec666d88dbc9.tar.zst yuzu-4630209c4ce99bb05d5493ff16d9ec666d88dbc9.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/arm/dyncom/arm_dyncom.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/arm/dyncom/arm_dyncom.cpp b/src/core/arm/dyncom/arm_dyncom.cpp index 947f5094b..a3581132c 100644 --- a/src/core/arm/dyncom/arm_dyncom.cpp +++ b/src/core/arm/dyncom/arm_dyncom.cpp @@ -93,7 +93,7 @@ void ARM_DynCom::ResetContext(Core::ThreadContext& context, u32 stack_top, u32 e context.cpu_registers[0] = arg; context.pc = entry_point; 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) { |