summaryrefslogtreecommitdiffstats
path: root/src/core/arm
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2016-05-09 22:28:03 +0200
committerLioncash <mathew1800@gmail.com>2016-05-09 22:30:55 +0200
commit0f941d0245a42497e430a7c76f868aa9b120159e (patch)
tree2ae61baac83307d3ea0150f7f333d3f44ba8d655 /src/core/arm
parentMerge pull request #1768 from lioncash/swap (diff)
downloadyuzu-0f941d0245a42497e430a7c76f868aa9b120159e.tar
yuzu-0f941d0245a42497e430a7c76f868aa9b120159e.tar.gz
yuzu-0f941d0245a42497e430a7c76f868aa9b120159e.tar.bz2
yuzu-0f941d0245a42497e430a7c76f868aa9b120159e.tar.lz
yuzu-0f941d0245a42497e430a7c76f868aa9b120159e.tar.xz
yuzu-0f941d0245a42497e430a7c76f868aa9b120159e.tar.zst
yuzu-0f941d0245a42497e430a7c76f868aa9b120159e.zip
Diffstat (limited to 'src/core/arm')
-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) {