Received: from eggs.gnu.org ([2001:4830:134:3::10]:44099) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YB6W6-0000N7-5J for qemu-devel@nongnu.org; Tue, 13 Jan 2015 13:48:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YB6W2-0008VP-8E for qemu-devel@nongnu.org; Tue, 13 Jan 2015 13:48:38 -0500 Date: Tue, 13 Jan 2015 16:48:30 -0200 From: Eduardo Habkost Message-ID: <20150113184830.GE31510@thinpad.lan.raisama.net> References: <1420652355-31847-1-git-send-email-pbonzini@redhat.com> <1420652355-31847-2-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1420652355-31847-2-git-send-email-pbonzini@redhat.com> Subject: Re: [Qemu-devel] [PATCH 1/4] target-i386: fix movntsd on big-endian hosts List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, qemu-stable@nongnu.org On Wed, Jan 07, 2015 at 06:39:12PM +0100, Paolo Bonzini wrote: > This was accessing an XMM register's low half without going through XMM_Q. > > Cc: qemu-stable@nongnu.org > Signed-off-by: Paolo Bonzini > --- > target-i386/translate.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/target-i386/translate.c b/target-i386/translate.c > index ebdc350..5af4300 100644 > --- a/target-i386/translate.c > +++ b/target-i386/translate.c > @@ -3074,7 +3074,8 @@ static void gen_sse(CPUX86State *env, DisasContext *s, int b, > goto illegal_op; > gen_lea_modrm(env, s, modrm); > if (b1 & 1) { > - gen_stq_env_A0(s, offsetof(CPUX86State, xmm_regs[reg])); > + gen_stq_env_A0(s, offsetof(CPUX86State, > + xmm_regs[reg].XMM_Q(0))); Do we have (or will patch 4/4 introduce) the same bug on the tcg_gen_addi_ptr() calls that don't use the XMM_Q macro? -- Eduardo