Skip to content
Commit b782c65b authored by Gustavo Romero's avatar Gustavo Romero Committed by Luis Machado
Browse files

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: default avatarGustavo Romero <gustavo.romero@linaro.org>
Tested-By: default avatarLuis Machado <luis.machado@arm.com>
Approved-By: default avatarLuis Machado <luis.machado@arm.com>
Reviewed-By: default avatarEli Zaretskii <eliz@gnu.org>
parent 1d4ed590
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment