Reviewed-by: Yongbok Kim <yongbok....@imgtec.com>

Regards,
Yongbok

On 14/07/2014 17:19, Leon Alrae wrote:
Signed-off-by: Leon Alrae <leon.al...@imgtec.com>
---
  target-mips/cpu.h |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/target-mips/cpu.h b/target-mips/cpu.h
index a35ab9d..b981ec7 100644
--- a/target-mips/cpu.h
+++ b/target-mips/cpu.h
@@ -789,7 +789,8 @@ static inline void compute_hflags(CPUMIPSState *env)
          }
      }
  #endif
-    if ((env->CP0_Status & (1 << CP0St_CU0)) ||
+    if (((env->CP0_Status & (1 << CP0St_CU0)) &&
+         !(env->insn_flags & ISA_MIPS32R6)) ||
          !(env->hflags & MIPS_HFLAG_KSU)) {
          env->hflags |= MIPS_HFLAG_CP0;
      }


Reply via email to