Message ID | 2DF2CE84-B4A6-4289-88A9-E36061B2D4A4@arm.com |
---|---|
State | New |
Headers | show |
On 08/21/2018 06:29 PM, Alan Hayward wrote: > Updated version below. > This version ok? This is fine with me, but please wait for Eli to review it too. > 2018-08-21 Alan Hayward <alan.hayward@arm.com> > > gdb/ > * NEWS: Add SVE to 8.2 section. > * doc/gdb.texinfo: Add SVE to AArch64 section. Note that gdb/doc/ has its own ChangeLog. Please make sure the gdb.texinfo entry lands there, and has no leading "doc/". Thanks, Pedro Alves
> From: Alan Hayward <Alan.Hayward@arm.com> > CC: GDB Patches <gdb-patches@sourceware.org>, nd <nd@arm.com> > Date: Tue, 21 Aug 2018 17:29:18 +0000 > > Updated version below. > This version ok? > > > > 2018-08-21 Alan Hayward <alan.hayward@arm.com> > > gdb/ > * NEWS: Add SVE to 8.2 section. > * doc/gdb.texinfo: Add SVE to AArch64 section. The gdb.texinfo entry should mention the node in which the changes are made, as if it were a function. > +When @value{GDBN} is debugging the AArch64 architecture, if the Scalable Vector > +Extension (SVE) is present then @value{GDBN} will provide the vector registers ^ Comma missing there. > +@code{$z0} through @code{$z31}, vector predicate registers @code{$p0} through > +@code{$p15}, and the @code{$ffr} register. In addition the pseudo register ^ And another. OK with those gotchas fixed. Thanks.
diff --git a/gdb/NEWS b/gdb/NEWS index 16d3d725897c8c06124709c0203be5d24c85f72b..bd03d72e9afb2b5413b5a322754fc352ee7c34dc 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -90,6 +90,9 @@ GNU/Linux/RISC-V riscv*-*-linux* * C expressions can now use _Alignof, and C++ expressions can now use alignof. +* Support for SVE on AArch64 Linux. Note that GDB does not detect changes to + the vector length while the process is running. + * New commands set debug fbsd-nat diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 433a2698a9264b352e560259f6157dc98a6777e3..e58d67283b341de9866ed1605f3285bf7c81ce78 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -23451,6 +23451,22 @@ Show whether AArch64 debugging messages are displayed. @end table +@subsubsection AArch64 SVE. +@cindex AArch64 SVE. + +When @value{GDBN} is debugging the AArch64 architecture, if the Scalable Vector +Extension (SVE) is present then @value{GDBN} will provide the vector registers +@code{$z0} through @code{$z31}, vector predicate registers @code{$p0} through +@code{$p15}, and the @code{$ffr} register. In addition the pseudo register +@code{$vg} will be provided. This is the vector granule for the current thread +and represents the number of 64-bit chunks in an SVE @code{z} register. + +If the vector length changes, then the @code{$vg} register will be updated, +but the lengths of the @code{z} and @code{p} registers will not change. This +is a known limitation of @value{GDBN} and does not affect the execution of the +target process. + + @node i386 @subsection x86 Architecture-specific Issues