Commit 68998c5d authored by Fabrice Bellard's avatar Fabrice Bellard
Browse files

cpu_reset() fix (Paul Brook)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1712 c046a42c-6fe2-441c-8c8c-71466251a162
parent 6d7e6326
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2431,10 +2431,10 @@ int gen_intermediate_code_pc(CPUState *env, TranslationBlock *tb)
void cpu_reset(CPUARMState *env)
{
#if defined (CONFIG_USER_ONLY)
    env->uncached_cpsr = ARM_CPU_MODE_USR;
#else
    /* SVC mode with interrupts disabled.  */
    env->uncached_cpsr = ARM_CPU_MODE_SVC | CPSR_A | CPSR_F | CPSR_I;
#else
    env->uncached_cpsr = ARM_CPU_MODE_USR;
#endif
    env->regs[15] = 0;
}