]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm: Factor out code for setting MTE TCF0 field
authorGustavo Romero <gustavo.romero@linaro.org>
Fri, 5 Jul 2024 08:40:42 +0000 (09:40 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Fri, 5 Jul 2024 11:35:14 +0000 (12:35 +0100)
commitbef6a77f6da8bdba7dca36aec4976b434d0d8f1c
treede074abcdd809290c7f73e2679c27a8944e21523
parent0c9b437c90b127bb99fc2e0d3cd41136b2148078
target/arm: Factor out code for setting MTE TCF0 field

Factor out the code used for setting the MTE TCF0 field from the prctl
code into a convenient function. Other subsystems, like gdbstub, need to
set this field as well, so keep it as a separate function to avoid
duplication and ensure consistency in how this field is set across the
board.

Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
Message-Id: <20240628050850.536447-7-gustavo.romero@linaro.org>
[AJB: clean-up includes, move MTE defines]
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240705084047.857176-36-alex.bennee@linaro.org>
linux-user/aarch64/meson.build
linux-user/aarch64/mte_user_helper.c [new file with mode: 0644]
linux-user/aarch64/mte_user_helper.h [new file with mode: 0644]
linux-user/aarch64/target_prctl.h
linux-user/syscall.c