Received: from eggs.gnu.org ([2001:4830:134:3::10]:37621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhg0J-0002jg-EX for qemu-devel@nongnu.org; Wed, 07 Sep 2016 12:47:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhg0G-0004cO-5d for qemu-devel@nongnu.org; Wed, 07 Sep 2016 12:47:15 -0400 Received: from mail-yw0-x241.google.com ([2607:f8b0:4002:c05::241]:33880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhg0G-0004cK-10 for qemu-devel@nongnu.org; Wed, 07 Sep 2016 12:47:12 -0400 Received: by mail-yw0-x241.google.com with SMTP id j1so897641ywb.1 for ; Wed, 07 Sep 2016 09:47:11 -0700 (PDT) Sender: Richard Henderson References: <1467837300-17528-1-git-send-email-rth@twiddle.net> From: Richard Henderson Message-ID: <35f23ccc-deba-1768-f75a-6b5a4f9fa4e8@twiddle.net> Date: Wed, 7 Sep 2016 09:47:07 -0700 MIME-Version: 1.0 In-Reply-To: <1467837300-17528-1-git-send-email-rth@twiddle.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] target-i386: Use struct X86XSaveArea in fpu_helper.c List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: ehabkost@redhat.com On 07/06/2016 01:35 PM, Richard Henderson wrote: > This avoids a double hand-full of magic numbers in the > xsave and xrstor helper functions. > > Signed-off-by: Richard Henderson > --- > target-i386/cpu.c | 7 ++- > target-i386/cpu.h | 10 +---- > target-i386/fpu_helper.c | 108 ++++++++++++++++++++++++++--------------------- > 3 files changed, 67 insertions(+), 58 deletions(-) > --- > > V2: Adjust struct X86XSaveHeader so as to retain the test for 16 bytes of > zeros within xrstor. Comment on the slight inconsistency in two sections > of the current Intel documentation. Ping. r~