aboutsummaryrefslogtreecommitdiff
path: root/target/arm/cpu-param.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2021-02-12 10:48:51 -0800
committerPeter Maydell <peter.maydell@linaro.org>2021-02-16 13:06:16 +0000
commit0e0c030c681730f3ec55ba3b223b608a8f3e8282 (patch)
treeb787487c814a2833973d96d3ef135cd784d5f46a /target/arm/cpu-param.h
parent31c048342db09e70ab887aba9c7e0818c18d0fb1 (diff)
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 'target/arm/cpu-param.h')
-rw-r--r--target/arm/cpu-param.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/arm/cpu-param.h b/target/arm/cpu-param.h
index 00e7d9e937..7f38d33b8e 100644
--- a/target/arm/cpu-param.h
+++ b/target/arm/cpu-param.h
@@ -20,6 +20,9 @@
#ifdef CONFIG_USER_ONLY
#define TARGET_PAGE_BITS 12
+# ifdef TARGET_AARCH64
+# define TARGET_TAGGED_ADDRESSES
+# endif
#else
/*
* ARMv7 and later CPUs have 4K pages minimum, but ARMv5 and v6