Received: from eggs.gnu.org ([2001:4830:134:3::10]:46832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXySh-00068w-TO for qemu-devel@nongnu.org; Mon, 22 Feb 2016 16:56:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXySc-0001L8-Vd for qemu-devel@nongnu.org; Mon, 22 Feb 2016 16:56:11 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48522) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXySc-0001L4-QV for qemu-devel@nongnu.org; Mon, 22 Feb 2016 16:56:06 -0500 Date: Mon, 22 Feb 2016 18:56:03 -0300 From: Eduardo Habkost Message-ID: <20160222215603.GB3901@thinpad.lan.raisama.net> References: <1456136399-6227-1-git-send-email-pbonzini@redhat.com> <56CB5E24.1010804@twiddle.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56CB5E24.1010804@twiddle.net> Subject: Re: [Qemu-devel] [PATCH] target-i386: fix confusion in xcr0 bit position vs. mask List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: Paolo Bonzini , qemu-devel@nongnu.org On Mon, Feb 22, 2016 at 11:14:44AM -0800, Richard Henderson wrote: > On 02/22/2016 02:19 AM, Paolo Bonzini wrote: > > The xsave and xrstor helpers are accessing the x86_ext_save_areas array > > using a bit mask instead of a bit position. Provide two sets of XSTATE_* > > definitions and use XSTATE_*_BIT when a bit position is requested. > > Whoops. This patch is fine, > > Reviewed-by: Richard Henderson > > Dosen't Eduardo have a pending patch set to make xsave use a struct? That > would fix this as well, by not requiring fpu_helper.c to use the > x86_ext_save_areas array at all... That's true, but the bug fix have priority, so I will queue it first. -- Eduardo