On Fri, 15 Jan 2021 at 22:47, Richard Henderson <richard.hender...@linaro.org> wrote: > > This is the prctl bit that controls whether syscalls accept tagged > addresses. See Documentation/arm64/tagged-address-abi.rst in the > linux kernel. > > Signed-off-by: Richard Henderson <richard.hender...@linaro.org> > --- > linux-user/aarch64/target_syscall.h | 4 ++++ > target/arm/cpu-param.h | 3 +++ > target/arm/cpu.h | 23 +++++++++++++++++++++++ > linux-user/syscall.c | 25 +++++++++++++++++++++++++ > target/arm/cpu.c | 3 +++ > 5 files changed, 58 insertions(+) > > 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)
Stray extra space. Otherwise Reviewed-by: Peter Maydell <peter.mayd...@linaro.org> thanks -- PMM