From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlKFB-0004QX-7T for qemu-devel@nongnu.org; Mon, 03 Nov 2014 11:12:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlKF6-0005X9-4S for qemu-devel@nongnu.org; Mon, 03 Nov 2014 11:12:37 -0500 Received: from mailapp01.imgtec.com ([195.59.15.196]:47923) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlKF5-0005Wy-Vh for qemu-devel@nongnu.org; Mon, 03 Nov 2014 11:12:32 -0500 Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id 677B18BEA03B6 for ; Mon, 3 Nov 2014 16:12:28 +0000 (GMT) From: Leon Alrae Date: Mon, 3 Nov 2014 16:11:26 +0000 Message-ID: <1415031108-15039-13-git-send-email-leon.alrae@imgtec.com> In-Reply-To: <1415031108-15039-1-git-send-email-leon.alrae@imgtec.com> References: <1415031108-15039-1-git-send-email-leon.alrae@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PULL 12/34] target-mips: CP0_Status.CU0 no longer allows the user to access CP0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Signed-off-by: Leon Alrae Reviewed-by: Yongbok Kim --- target-mips/cpu.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target-mips/cpu.h b/target-mips/cpu.h index 6367d8c..3b975eb 100644 --- a/target-mips/cpu.h +++ b/target-mips/cpu.h @@ -790,7 +790,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; } -- 2.1.0