diff options
author | Gustavo Romero <gustavo.romero@linaro.org> | 2024-07-30 14:39:36 +0000 |
---|---|---|
committer | Luis Machado <luis.machado@arm.com> | 2024-08-01 10:01:39 +0100 |
commit | b782c65ba1103270d0e5097b655489ec08470ca9 (patch) | |
tree | 4eec2e8427b4535b63f33ffbd42eeb8afa3676d6 /gdbserver | |
parent | 1d4ed5907570ef4901f2bbf383e563dc0854bf15 (diff) | |
download | binutils-b782c65ba1103270d0e5097b655489ec08470ca9.zip binutils-b782c65ba1103270d0e5097b655489ec08470ca9.tar.gz binutils-b782c65ba1103270d0e5097b655489ec08470ca9.tar.bz2 |
gdb: AArch64: Support MTE on baremetal
This commit moves aarch64_linux_memtag_matches_p,
aarch64_linux_set_memtags, aarch64_linux_get_memtag, and
aarch64_linux_memtag_to_string hooks (plus the aarch64_mte_get_atag
function used by them), along with the setting of the memtag granule
size, from aarch64-linux-tdep.c to aarch64-tdep.c, making MTE available
on baremetal targets. Since the aarch64-linux-tdep.c layer inherits
these hooks from aarch64-tdep.c, there is no effective change for
aarch64-linux targets.
Helpers used both by aarch64-tdep.c and by aarch64-linux-tdep.c were
moved from arch/aarch64-mte-linux.{c,h} to new arch/aarch64-mte.{c,h}
files.
Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
Tested-By: Luis Machado <luis.machado@arm.com>
Approved-By: Luis Machado <luis.machado@arm.com>
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Diffstat (limited to 'gdbserver')
-rw-r--r-- | gdbserver/configure.srv | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdbserver/configure.srv b/gdbserver/configure.srv index e24e40e..9535913 100644 --- a/gdbserver/configure.srv +++ b/gdbserver/configure.srv @@ -48,6 +48,7 @@ case "${gdbserver_host}" in srv_tgtobj="$srv_tgtobj nat/aarch64-linux.o" srv_tgtobj="$srv_tgtobj arch/aarch64-insn.o" srv_tgtobj="$srv_tgtobj arch/aarch64.o" + srv_tgtobj="$srv_tgtobj arch/aarch64-mte.o" srv_tgtobj="$srv_tgtobj arch/aarch64-mte-linux.o" srv_tgtobj="$srv_tgtobj arch/aarch64-scalable-linux.o" srv_tgtobj="$srv_tgtobj linux-aarch64-tdesc.o" |