From c94c41f95ac5e465671cd3d1865bcd5b03e98d65 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 11 Feb 2015 10:49:48 -0500 Subject: arm: Get rid of some magic constants. Specify proper ARM mode. Initially, we were starting the emulator in USER26MODE, which is incorrect, this should be USER32MODE. --- src/core/arm/interpreter/arminit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/arm/interpreter/arminit.cpp') diff --git a/src/core/arm/interpreter/arminit.cpp b/src/core/arm/interpreter/arminit.cpp index 7b502e24..b7dd5e38 100644 --- a/src/core/arm/interpreter/arminit.cpp +++ b/src/core/arm/interpreter/arminit.cpp @@ -74,7 +74,7 @@ ARMul_State* ARMul_NewState(ARMul_State* state) for (unsigned int i = 0; i < 7; i++) state->Spsr[i] = 0; - state->Mode = 0; + state->Mode = USER32MODE; state->VectorCatch = 0; state->Aborted = false; -- cgit v1.2.3