提交 a855593c 编写于 作者: E edgar_igl

CRIS: Initialize the arch version preg to v32.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5462 c046a42c-6fe2-441c-8c8c-71466251a162
上级 d7b6967a
...@@ -3411,6 +3411,7 @@ void cpu_reset (CPUCRISState *env) ...@@ -3411,6 +3411,7 @@ void cpu_reset (CPUCRISState *env)
memset(env, 0, offsetof(CPUCRISState, breakpoints)); memset(env, 0, offsetof(CPUCRISState, breakpoints));
tlb_flush(env, 1); tlb_flush(env, 1);
env->pregs[PR_VR] = 32;
#if defined(CONFIG_USER_ONLY) #if defined(CONFIG_USER_ONLY)
/* start in user mode with interrupts enabled. */ /* start in user mode with interrupts enabled. */
env->pregs[PR_CCS] |= U_FLAG | I_FLAG; env->pregs[PR_CCS] |= U_FLAG | I_FLAG;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册