qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 3/6] target-mips: CP0_Status.CU0 no longer allow


From: Yongbok Kim
Subject: Re: [Qemu-devel] [PATCH 3/6] target-mips: CP0_Status.CU0 no longer allows the user to access CP0
Date: Fri, 17 Oct 2014 10:58:11 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2

Reviewed-by: Yongbok Kim <address@hidden>

Regards,
Yongbok

On 14/07/2014 17:19, Leon Alrae wrote:
Signed-off-by: Leon Alrae <address@hidden>
---
  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

[Prev in Thread] Current Thread [Next in Thread]