From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26717 invoked by alias); 4 Mar 2010 18:05:14 -0000 Received: (qmail 26709 invoked by uid 22791); 4 Mar 2010 18:05:13 -0000 X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_00,NO_DNS_FOR_FROM X-Spam-Check-By: sourceware.org Received: from mga09.intel.com (HELO mga09.intel.com) (134.134.136.24) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 04 Mar 2010 18:05:10 +0000 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 04 Mar 2010 10:02:11 -0800 X-ExtLoop1: 1 Received: from gnu-6.sc.intel.com ([10.3.194.107]) by orsmga001.jf.intel.com with ESMTP; 04 Mar 2010 10:03:49 -0800 Received: by gnu-6.sc.intel.com (Postfix, from userid 500) id 77A4081239A; Thu, 4 Mar 2010 10:04:08 -0800 (PST) Date: Thu, 04 Mar 2010 18:05:00 -0000 From: "H.J. Lu" To: GDB Subject: PATCH: 2/6: Add AVX support (Update document) Message-ID: <20100304180408.GA10869@intel.com> Reply-To: "H.J. Lu" References: <20100304180219.GA10826@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100304180219.GA10826@intel.com> User-Agent: Mutt/1.5.20 (2009-08-17) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-03/txt/msg00197.txt.bz2 Hi, This patch updates document for AVX support. OK to install? Thanks. H.J. --- 2010-03-03 H.J. Lu * gdb.texinfo (General Query Packets): Document x86:xstate extension in gdb remote protocol. (i386 Features): Add org.gnu.gdb.i386.avx. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 6bb7d52..9bb79ae 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -30250,6 +30250,16 @@ extensions to the remote protocol. @value{GDBN} does not use such extensions unless the stub also reports that it supports them by including @samp{multiprocess+} in its @samp{qSupported} reply. @xref{multiprocess extensions}, for details. + +@item x86:xstate=@var{bytes}:xcr0=@var{value} +This feature indicates that @value{GDBN} supports x86 XSAVE extended +state. @var{bytes} specifies the maximum size in bytes of x86 XSAVE +extended state @value{GDBN} supports. @var{value} specifies the +maximum value of the extended control register 0 (the +XFEATURE_ENABLED_MASK register) @value{GDBN} supports. The stub should +select the best target description supported by @value{GDBN}, based on +@var{bytes} and @var{value}. @var{bytes} and @var{value} are encoded +as @sc{ascii} string in hexadecimal or decimal numbers. @end table Stubs should ignore any unknown values for @@ -33320,8 +33330,7 @@ targets. It should describe the following registers: The register sets may be different, depending on the target. -The @samp{org.gnu.gdb.i386.sse} feature is required. It should -describe registers: +The @samp{org.gnu.gdb.i386.sse} feature should describe registers: @itemize @minus @item @@ -33332,6 +33341,20 @@ describe registers: @samp{mxcsr} @end itemize +The @samp{org.gnu.gdb.i386.avx} feature should describe registers: + +@itemize @minus +@item +@samp{ymm0} through @samp{ymm7} for i386 +@item +@samp{ymm0} through @samp{ymm15} for amd64 +@item +@samp{mxcsr} +@end itemize + +One of the @samp{org.gnu.gdb.i386.sse} or @samp{org.gnu.gdb.i386.avx} +feature is required, not both. + The @samp{org.gnu.gdb.i386.linux} feature is optional. It should describe a single register, @samp{orig_eax}.