gdbstub: Add support for MTE in user mode
authorGustavo Romero <gustavo.romero@linaro.org>
Fri, 5 Jul 2024 08:40:46 +0000 (09:40 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Fri, 5 Jul 2024 11:35:33 +0000 (12:35 +0100)
commitf81198cefad223afc8e1ae60e9830b60e5f2d6ff
tree6c7f91ad895a304a4b6f0c6b6d031abd977c41c2
parent3b6c27d8f23bfc298cae3a7e404421107705b211
gdbstub: Add support for MTE in user mode

This commit implements the stubs to handle the qIsAddressTagged,
qMemTag, and QMemTag GDB packets, allowing all GDB 'memory-tag'
subcommands to work with QEMU gdbstub on aarch64 user mode. It also
implements the get/set functions for the special GDB MTE register
'tag_ctl', used to control the MTE fault type at runtime.

Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
Message-Id: <20240628050850.536447-11-gustavo.romero@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240705084047.857176-40-alex.bennee@linaro.org>
configs/targets/aarch64-linux-user.mak
gdb-xml/aarch64-mte.xml [new file with mode: 0644]
target/arm/cpu.c
target/arm/gdbstub.c
target/arm/gdbstub64.c
target/arm/internals.h