Function for reading the Aarch64 SVE vector length
authorAlan Hayward <alan.hayward@arm.com>
Thu, 31 May 2018 13:36:48 +0000 (14:36 +0100)
committerAlan Hayward <alan.hayward@arm.com>
Thu, 31 May 2018 13:36:48 +0000 (14:36 +0100)
commit122394f1476b1c925a281b15399119500c8231c1
treeeeacb0f62658c8cf48d8b300b729090337b837b1
parent95228a0d790f16deae3436e18f41b70fc711a5b2
Function for reading the Aarch64 SVE vector length

Returns 0 for systems without SVE support.

Note the defines taken from Linux kernel headers
in aarch64-sve-linux-ptrace.h.

gdb/
* Makefile.in: Add new header.
* gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
(sve_vl_from_vg): Likewise.
(sve_vq_from_vl): Likewise.
(sve_vl_from_vq): Likewise.
(sve_vq_from_vg): Likewise.
(sve_vg_from_vq): Likewise.
* configure.nat: Add new c file.
* nat/aarch64-sve-linux-ptrace.c: New file.
* nat/aarch64-sve-linux-ptrace.h: New file.

gdbserver/
* configure.srv: Add new c/h file.
gdb/ChangeLog
gdb/Makefile.in
gdb/arch/aarch64.h
gdb/configure.nat
gdb/gdbserver/ChangeLog
gdb/gdbserver/configure.srv
gdb/nat/aarch64-sve-linux-ptrace.c [new file with mode: 0644]
gdb/nat/aarch64-sve-linux-ptrace.h [new file with mode: 0644]