Skip to contentSkip to conversation

[7191] Enable access to SYNCI_Step register in usermode emulation.

Qemu-devel Paul Brook 1 participant 1 message Apr 20, 2009

lore
Share & tools
lore

Paul Brook

author
#0 lore raw

Revision: 7191

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7191
Author:   pbrook
Date:     2009-04-20 23:55:57 +0000 (Mon, 20 Apr 2009)

Log Message:
-----------
Enable access to SYNCI_Step register in usermode emulation.

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

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

target-mips/translate.c +2 -0
@@ -8568,6 +8568,8 @@
     /* Minimal init */
 #if defined(CONFIG_USER_ONLY)
     env->hflags = MIPS_HFLAG_UM;
+    /* Enable access to the SYNCI_Step register.  */
+    env->CP0_HWREna |= (1 << 1);
 #else
     if (env->hflags & MIPS_HFLAG_BMASK) {
         /* If the exception was raised from a delay slot,