target/arm: Call aarch64_add_pauth_properties() once in host_initfn()
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
5f34a5b642
commit
7da8b562ae
1 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue