summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-05-10 00:54:09 +0200
committerbunnei <bunneidev@gmail.com>2016-05-10 00:54:09 +0200
commit976bacf5f776a629f1003d5d8303daa7cb36c5f8 (patch)
tree39c5cd4541a2534b76c91868d9ccc17f57024c6e /src/core
parentMerge pull request #1770 from lioncash/format (diff)
parentdyncom: Reset the context into user mode correctly (diff)
downloadyuzu-976bacf5f776a629f1003d5d8303daa7cb36c5f8.tar
yuzu-976bacf5f776a629f1003d5d8303daa7cb36c5f8.tar.gz
yuzu-976bacf5f776a629f1003d5d8303daa7cb36c5f8.tar.bz2
yuzu-976bacf5f776a629f1003d5d8303daa7cb36c5f8.tar.lz
yuzu-976bacf5f776a629f1003d5d8303daa7cb36c5f8.tar.xz
yuzu-976bacf5f776a629f1003d5d8303daa7cb36c5f8.tar.zst
yuzu-976bacf5f776a629f1003d5d8303daa7cb36c5f8.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/arm/dyncom/arm_dyncom.cpp2
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 a3581132c..13492a08b 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 | ((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) {