Skip to contentSkip to conversation

[5462] CRIS: Initialize the arch version preg to v32.

Qemu-devel Edgar E. Iglesias 1 participant 1 message Oct 11, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 5462

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5462
Author:   edgar_igl
Date:     2008-10-11 19:36:17 +0000 (Sat, 11 Oct 2008)

Log Message:
-----------
CRIS: Initialize the arch version preg to v32.

Modified Paths:
--------------
trunk/target-cris/translate.c

Modified: trunk/target-cris/translate.c
===================================================================

target-cris/translate.c +1 -0
@@ -3411,6 +3411,7 @@
 	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;