diff options
author | Richard Henderson | 2021-02-12 19:48:51 +0100 |
---|---|---|
committer | Peter Maydell | 2021-02-16 14:06:16 +0100 |
commit | 0e0c030c681730f3ec55ba3b223b608a8f3e8282 (patch) | |
tree | b787487c814a2833973d96d3ef135cd784d5f46a /linux-user/aarch64 | |
parent | linux-user: Handle tags in lock_user/unlock_user (diff) | |
download | qemu-0e0c030c681730f3ec55ba3b223b608a8f3e8282.tar.gz qemu-0e0c030c681730f3ec55ba3b223b608a8f3e8282.tar.xz qemu-0e0c030c681730f3ec55ba3b223b608a8f3e8282.zip |
linux-user/aarch64: Implement PR_TAGGED_ADDR_ENABLE
This is the prctl bit that controls whether syscalls accept tagged
addresses. See Documentation/arm64/tagged-address-abi.rst in the
linux kernel.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210212184902.1251044-21-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'linux-user/aarch64')
-rw-r--r-- | linux-user/aarch64/target_syscall.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linux-user/aarch64/target_syscall.h b/linux-user/aarch64/target_syscall.h index 3194e6b009..820601dfcc 100644 --- a/linux-user/aarch64/target_syscall.h +++ b/linux-user/aarch64/target_syscall.h @@ -30,4 +30,8 @@ struct target_pt_regs { # define TARGET_PR_PAC_APDBKEY (1 << 3) # define TARGET_PR_PAC_APGAKEY (1 << 4) +#define TARGET_PR_SET_TAGGED_ADDR_CTRL 55 +#define TARGET_PR_GET_TAGGED_ADDR_CTRL 56 +# define TARGET_PR_TAGGED_ADDR_ENABLE (1UL << 0) + #endif /* AARCH64_TARGET_SYSCALL_H */ |