From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51239) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xz5oe-0008LS-BC for qemu-devel@nongnu.org; Thu, 11 Dec 2014 10:38:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xz5oU-0008HY-K9 for qemu-devel@nongnu.org; Thu, 11 Dec 2014 10:38:08 -0500 Received: from mailapp01.imgtec.com ([195.59.15.196]:43908) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xz5oU-0008HK-Cj for qemu-devel@nongnu.org; Thu, 11 Dec 2014 10:37:58 -0500 Message-ID: <5489BA55.1000004@imgtec.com> Date: Thu, 11 Dec 2014 15:37:57 +0000 From: Leon Alrae MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] target-mips: Fix DisasContext's ulri member initialization List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Maciej W. Rozycki" , qemu-devel@nongnu.org Cc: Aurelien Jarno On 02/12/2014 22:31, Maciej W. Rozycki wrote: > Set DisasContext's ulri member to 0 or 1 as with other bool members. > > Signed-off-by: Maciej W. Rozycki > --- > qemu-mips-disas-ulri.diff > Index: qemu-git-trunk/target-mips/translate.c > =================================================================== > --- qemu-git-trunk.orig/target-mips/translate.c 2014-12-02 21:28:17.528936640 +0000 > +++ qemu-git-trunk/target-mips/translate.c 2014-12-02 21:28:41.028928249 +0000 > @@ -19114,7 +19114,7 @@ gen_intermediate_code_internal(MIPSCPU * > ctx.bp = (env->CP0_Config3 >> CP0C3_BP) & 1; > /* Restore delay slot state from the tb context. */ > ctx.hflags = (uint32_t)tb->flags; /* FIXME: maybe use 64 bits here? */ > - ctx.ulri = env->CP0_Config3 & (1 << CP0C3_ULRI); > + ctx.ulri = (env->CP0_Config3 >> CP0C3_ULRI) & 1; > restore_cpu_state(env, &ctx); > #ifdef CONFIG_USER_ONLY > ctx.mem_idx = MIPS_HFLAG_UM; > Reviewed-by: Leon Alrae