summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorEric Johnson <ericj@mips.com>2013-01-07 22:26:44 -0800
committerAurelien Jarno <aurelien@aurel32.net>2013-01-08 11:49:01 +0100
commite1a4019cf13ddf2441496c2e613faba3a891cddf (patch)
tree6a1409bc38f8d1b8f91794ed24fbcafc2f629a80
parent314992b1a48a5a2a0f2b14195f959ad2c3f5b3ff (diff)
downloadfocaccia-qemu-e1a4019cf13ddf2441496c2e613faba3a891cddf.tar.gz
focaccia-qemu-e1a4019cf13ddf2441496c2e613faba3a891cddf.zip
target-mips: Allow DSP access to be disabled once enabled.
Clear the DSP hflags at the start of compute_hflags.  Otherwise access
is not properly disabled once enabled.

Signed-off-by: Eric Johnson <ericj@mips.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
-rw-r--r--target-mips/cpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-mips/cpu.h b/target-mips/cpu.h
index 31602ac8ed..5963d62973 100644
--- a/target-mips/cpu.h
+++ b/target-mips/cpu.h
@@ -751,7 +751,7 @@ static inline void compute_hflags(CPUMIPSState *env)
 {
     env->hflags &= ~(MIPS_HFLAG_COP1X | MIPS_HFLAG_64 | MIPS_HFLAG_CP0 |
                      MIPS_HFLAG_F64 | MIPS_HFLAG_FPU | MIPS_HFLAG_KSU |
-                     MIPS_HFLAG_UX);
+                     MIPS_HFLAG_UX | MIPS_HFLAG_DSP | MIPS_HFLAG_DSPR2);
     if (!(env->CP0_Status & (1 << CP0St_EXL)) &&
         !(env->CP0_Status & (1 << CP0St_ERL)) &&
         !(env->hflags & MIPS_HFLAG_DM)) {