binutils-gdb/gdb/features
Luis Machado c1bd443b4d AArch64: Add target description/feature for MTE registers
This patch adds a target description and feature "mte" for aarch64.

It includes one new register, tag_ctl, that can be used to configure the
tag generation rules and sync/async modes.  It is 64-bit in size.

The patch also adjusts the code that creates the target descriptions at
runtime based on CPU feature checks.

gdb/ChangeLog:

2021-03-24  Luis Machado  <luis.machado@linaro.org>

	* aarch64-linux-nat.c
	(aarch64_linux_nat_target::read_description): Take MTE flag into
	account.
	Slight refactor to hwcap flag checking.
	* aarch64-linux-tdep.c
	(aarch64_linux_core_read_description): Likewise.
	* aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
	MTE.
	(aarch64_read_description): Add mte_p parameter and update to use it.
	Update the documentation.
	(aarch64_gdbarch_init): Update call to aarch64_read_description.
	* aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
	* arch/aarch64.c: Include ../features/aarch64-mte.c.
	(aarch64_create_target_description): Add mte_p parameter and update
	the code to use it.
	* arch/aarch64.h (aarch64_create_target_description): Add mte_p
	parameter.
	* features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
	* features/aarch64-mte.c: New file, generated.
	* features/aarch64-mte.xml: New file.

gdbserver/ChangeLog:

2021-03-24  Luis Machado  <luis.machado@linaro.org>

	* linux-aarch64-ipa.cc (get_ipa_tdesc): Update call to
	aarch64_linux_read_description.
	(initialize_low_tracepoint): Likewise.
	* linux-aarch64-low.cc (aarch64_target::low_arch_setup): Take MTE flag
	into account.
	* linux-aarch64-tdesc.cc (tdesc_aarch64_list): Add one more dimension
	for MTE.
	(aarch64_linux_read_description): Add mte_p parameter and update to
	use it.
	* linux-aarch64-tdesc.h (aarch64_linux_read_description): Add mte_p
	parameter.
2021-03-24 14:52:08 -03:00
..
arc Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
arm Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
i386 Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
riscv Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
rs6000 Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sparc Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
aarch64-core.c
aarch64-core.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
aarch64-fpu.c aarch64: Add support for bfloat16 in gdb. 2021-01-12 14:03:58 +00:00
aarch64-fpu.xml aarch64: Add support for bfloat16 in gdb. 2021-01-12 14:03:58 +00:00
aarch64-mte.c AArch64: Add target description/feature for MTE registers 2021-03-24 14:52:08 -03:00
aarch64-mte.xml AArch64: Add target description/feature for MTE registers 2021-03-24 14:52:08 -03:00
aarch64-pauth.c
aarch64-pauth.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
aarch64-sve.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
btrace-conf.dtd Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
btrace.dtd Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
feature_to_c.sh Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
gdb-target.dtd Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
gdbserver-regs.xsl
library-list-aix.dtd Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
library-list-svr4.dtd Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
library-list.dtd Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
m68k-core.xml
Makefile AArch64: Add target description/feature for MTE registers 2021-03-24 14:52:08 -03:00
microblaze-core.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
microblaze-stack-protect.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
microblaze-with-stack-protect.c gdb: Have allocate_target_description return a unique_ptr 2020-10-08 10:14:14 +01:00
microblaze-with-stack-protect.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
microblaze.c gdb: Have allocate_target_description return a unique_ptr 2020-10-08 10:14:14 +01:00
microblaze.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mips64-cp0.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mips64-cpu.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mips64-dsp-linux.c gdb: Have allocate_target_description return a unique_ptr 2020-10-08 10:14:14 +01:00
mips64-dsp-linux.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mips64-dsp.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mips64-fpu.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mips64-linux.c gdb: Have allocate_target_description return a unique_ptr 2020-10-08 10:14:14 +01:00
mips64-linux.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mips-cp0.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mips-cpu.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mips-dsp-linux.c gdb: Have allocate_target_description return a unique_ptr 2020-10-08 10:14:14 +01:00
mips-dsp-linux.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mips-dsp.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mips-fpu.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mips-linux.c gdb: Have allocate_target_description return a unique_ptr 2020-10-08 10:14:14 +01:00
mips-linux.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
nds32-core.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
nds32-fpu.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
nds32-system.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
nds32.c gdb: Have allocate_target_description return a unique_ptr 2020-10-08 10:14:14 +01:00
nds32.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
nios2-cpu.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
nios2-linux.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
nios2.c gdb: Have allocate_target_description return a unique_ptr 2020-10-08 10:14:14 +01:00
nios2.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
number-regs.xsl
or1k-core.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
or1k.c gdb: Have allocate_target_description return a unique_ptr 2020-10-08 10:14:14 +01:00
or1k.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
osdata.dtd Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
rx.c gdb: add an option flag to 'maint print c-tdesc' 2020-11-12 09:44:00 +00:00
rx.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
s390-acr.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
s390-core32.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
s390-core64.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
s390-fpr.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
s390-gs-linux64.c gdb: Have allocate_target_description return a unique_ptr 2020-10-08 10:14:14 +01:00
s390-gs-linux64.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
s390-gs.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
s390-gsbc.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
s390-linux32.c gdb: Have allocate_target_description return a unique_ptr 2020-10-08 10:14:14 +01:00
s390-linux32.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
s390-linux32v1.c gdb: Have allocate_target_description return a unique_ptr 2020-10-08 10:14:14 +01:00
s390-linux32v1.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
s390-linux32v2.c gdb: Have allocate_target_description return a unique_ptr 2020-10-08 10:14:14 +01:00
s390-linux32v2.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
s390-linux64.c gdb: Have allocate_target_description return a unique_ptr 2020-10-08 10:14:14 +01:00
s390-linux64.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
s390-linux64v1.c gdb: Have allocate_target_description return a unique_ptr 2020-10-08 10:14:14 +01:00
s390-linux64v1.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
s390-linux64v2.c gdb: Have allocate_target_description return a unique_ptr 2020-10-08 10:14:14 +01:00
s390-linux64v2.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
s390-tdb.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
s390-te-linux64.c gdb: Have allocate_target_description return a unique_ptr 2020-10-08 10:14:14 +01:00
s390-te-linux64.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
s390-tevx-linux64.c gdb: Have allocate_target_description return a unique_ptr 2020-10-08 10:14:14 +01:00
s390-tevx-linux64.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
s390-vx-linux64.c gdb: Have allocate_target_description return a unique_ptr 2020-10-08 10:14:14 +01:00
s390-vx-linux64.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
s390-vx.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
s390x-core64.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
s390x-gs-linux64.c gdb: Have allocate_target_description return a unique_ptr 2020-10-08 10:14:14 +01:00
s390x-gs-linux64.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
s390x-linux64.c gdb: Have allocate_target_description return a unique_ptr 2020-10-08 10:14:14 +01:00
s390x-linux64.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
s390x-linux64v1.c gdb: Have allocate_target_description return a unique_ptr 2020-10-08 10:14:14 +01:00
s390x-linux64v1.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
s390x-linux64v2.c gdb: Have allocate_target_description return a unique_ptr 2020-10-08 10:14:14 +01:00
s390x-linux64v2.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
s390x-te-linux64.c gdb: Have allocate_target_description return a unique_ptr 2020-10-08 10:14:14 +01:00
s390x-te-linux64.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
s390x-tevx-linux64.c gdb: Have allocate_target_description return a unique_ptr 2020-10-08 10:14:14 +01:00
s390x-tevx-linux64.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
s390x-vx-linux64.c gdb: Have allocate_target_description return a unique_ptr 2020-10-08 10:14:14 +01:00
s390x-vx-linux64.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sort-regs.xsl
threads.dtd Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
tic6x-c6xp.c
tic6x-c6xp.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
tic6x-c62x-linux.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
tic6x-c64x-linux.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
tic6x-c64xp-linux.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
tic6x-core.c
tic6x-core.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
tic6x-gp.c
tic6x-gp.xml Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
traceframe-info.dtd Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
xinclude.dtd Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00