]> git.proxmox.com Git - qemu.git/commitdiff
CRIS: Initialize the arch version preg to v32.
authoredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 11 Oct 2008 19:36:17 +0000 (19:36 +0000)
committeredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 11 Oct 2008 19:36:17 +0000 (19:36 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5462 c046a42c-6fe2-441c-8c8c-71466251a162

target-cris/translate.c

index 86c455c4e8a445eef50204c5e887adebbb89c5bf..90920a21bd31e9bc1a388292b2834858e287ef30 100644 (file)
@@ -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;