diff options
author | Alan Hayward <alan.hayward@arm.com> | 2018-06-04 11:39:41 +0100 |
---|---|---|
committer | Alan Hayward <alan.hayward@arm.com> | 2018-06-04 12:07:26 +0100 |
commit | ba2d2bb24ea593c7fb17f51ef23f122064bb17d7 (patch) | |
tree | e1dbceba0189155252d0eecd789902888fe21498 /gdb/aarch64-linux-nat.c | |
parent | 39bfb9373c5cca78948c94174d46891c1a3d3613 (diff) | |
download | fsf-binutils-gdb-ba2d2bb24ea593c7fb17f51ef23f122064bb17d7.zip fsf-binutils-gdb-ba2d2bb24ea593c7fb17f51ef23f122064bb17d7.tar.gz fsf-binutils-gdb-ba2d2bb24ea593c7fb17f51ef23f122064bb17d7.tar.bz2 |
Enable SVE for GDB
Enable SVE support for GDB by reading the VQ when creating a
target description.
Also ensurse that SVE is taken into account when creating
the tdep structure, and store the current VQ value directly in tdep.
gdb/
* 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.
Diffstat (limited to 'gdb/aarch64-linux-nat.c')
-rw-r--r-- | gdb/aarch64-linux-nat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/aarch64-linux-nat.c b/gdb/aarch64-linux-nat.c index 94d18c3..1e4f937 100644 --- a/gdb/aarch64-linux-nat.c +++ b/gdb/aarch64-linux-nat.c @@ -32,6 +32,7 @@ #include "aarch32-linux-nat.h" #include "nat/aarch64-linux.h" #include "nat/aarch64-linux-hw-point.h" +#include "nat/aarch64-sve-linux-ptrace.h" #include "elf/external.h" #include "elf/common.h" @@ -537,8 +538,7 @@ aarch64_linux_nat_target::read_description () if (ret == 0) return tdesc_arm_with_neon; else - /* SVE not yet supported. */ - return aarch64_read_description (0); + return aarch64_read_description (aarch64_sve_get_vq (tid)); } /* Convert a native/host siginfo object, into/from the siginfo in the |