summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-20 23:55:57 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-20 23:55:57 +0000
commitdf357f0e6287339e3cb880635719cca3b79d2b6c (patch)
tree5cd0df4ad170499809a4b0ba12f037712ea6b4da
parent7545668bfed32b9d544f6484c627817aa0f59f25 (diff)
downloadhqemu-df357f0e6287339e3cb880635719cca3b79d2b6c.zip
hqemu-df357f0e6287339e3cb880635719cca3b79d2b6c.tar.gz
Enable access to SYNCI_Step register in usermode emulation.
Signed-off-by: Paul Brook <paul@codesourcery.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7191 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--target-mips/translate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target-mips/translate.c b/target-mips/translate.c
index 9657e79..e8ecb6e 100644
--- a/target-mips/translate.c
+++ b/target-mips/translate.c
@@ -8568,6 +8568,8 @@ void cpu_reset (CPUMIPSState *env)
/* 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,
OpenPOWER on IntegriCloud