From: Philippe Mathieu-Daudé Date: Tue, 28 Oct 2025 05:41:59 +0000 (+0100) Subject: target/arm: Call aarch64_add_pauth_properties() once in host_initfn() X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7da8b562ae694039e8c2f36e87a5e99b1f4745ed;p=thirdparty%2Fqemu.git target/arm: Call aarch64_add_pauth_properties() once in host_initfn() Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Signed-off-by: Peter Maydell --- diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c index 26cf7e6dfa..f81cfd0113 100644 --- a/target/arm/cpu64.c +++ b/target/arm/cpu64.c @@ -762,20 +762,20 @@ static void aarch64_a53_initfn(Object *obj) static void aarch64_host_initfn(Object *obj) { -#if defined(CONFIG_KVM) ARMCPU *cpu = ARM_CPU(obj); +#if defined(CONFIG_KVM) kvm_arm_set_cpu_features_from_host(cpu); if (arm_feature(&cpu->env, ARM_FEATURE_AARCH64)) { aarch64_add_sve_properties(obj); - aarch64_add_pauth_properties(obj); } #elif defined(CONFIG_HVF) - ARMCPU *cpu = ARM_CPU(obj); hvf_arm_set_cpu_features_from_host(cpu); - aarch64_add_pauth_properties(obj); #else g_assert_not_reached(); #endif + if (arm_feature(&cpu->env, ARM_FEATURE_AARCH64)) { + aarch64_add_pauth_properties(obj); + } } static void aarch64_max_initfn(Object *obj)