]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Enable SVE for GDB
authorAlan Hayward <alan.hayward@arm.com>
Fri, 11 May 2018 10:52:52 +0000 (11:52 +0100)
committerSimon Marchi <simon.marchi@ericsson.com>
Thu, 31 May 2018 20:09:12 +0000 (16:09 -0400)
commit128c47da0e0766c3a1f21d0036c033c49620dd9c
tree43da705e0ae9f42dcaf732d49ecbce7feb984784
parent9d1e9046bb610617fbabeda441339414b3094958
Enable SVE for GDB

This patch enables SVE support for GDB by reading the VQ when
creating a target description.

It also ensures that SVE is taken into account when creating
the tdep structure, and stores the current VQ value directly
in tdep.

With this patch, gdb on an aarch64 system with SVE will now detect
SVE. The SVE registers will be displayed (but the contents will be
invalid). The following patches fill out the contents.

2018-05-101 Alan Hayward  <alan.hayward@arm.com>

* aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
* aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
(aarch64_gdbarch_init): Check for SVE.
* aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
gdb/aarch64-linux-nat.c
gdb/aarch64-tdep.c
gdb/aarch64-tdep.h