aboutsummaryrefslogtreecommitdiff
path: root/target-cris
diff options
context:
space:
mode:
authoredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-11 19:36:17 +0000
committeredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-11 19:36:17 +0000
commita855593c33fcc6efd5d9033a0942b56a08a8f8be (patch)
tree03cbe7a6ee67c7476b6796dda80a4a9193999424 /target-cris
parentd7b6967af41493e2072a0c73016a61fc8e5b8bc5 (diff)
CRIS: Initialize the arch version preg to v32.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5462 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-cris')
-rw-r--r--target-cris/translate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-cris/translate.c b/target-cris/translate.c
index 86c455c4e8..90920a21bd 100644
--- a/target-cris/translate.c
+++ b/target-cris/translate.c
@@ -3411,6 +3411,7 @@ void cpu_reset (CPUCRISState *env)
memset(env, 0, offsetof(CPUCRISState, breakpoints));
tlb_flush(env, 1);
+ env->pregs[PR_VR] = 32;
#if defined(CONFIG_USER_ONLY)
/* start in user mode with interrupts enabled. */
env->pregs[PR_CCS] |= U_FLAG | I_FLAG;