
virt inclusion category: feature bugzilla: https://gitee.com/openeuler/qemu/issues/IBSJV9 ------------------------------------------------------------------------ Signed-off-by: Jinqian Yang <yangjinqian1@huawei.com> --- target/arm/kunpeng920-regs.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/target/arm/kunpeng920-regs.c b/target/arm/kunpeng920-regs.c index a424a14d28..a95befc32d 100644 --- a/target/arm/kunpeng920-regs.c +++ b/target/arm/kunpeng920-regs.c @@ -9,6 +9,7 @@ #include "qemu/osdep.h" #include "cpu.h" #include "cpregs.h" +#include "cpu-features.h" int kunpeng920_update_registers(ARMCPU *cpu) { @@ -38,6 +39,13 @@ int kunpeng920_update_registers(ARMCPU *cpu) cpu->isar.id_aa64zfr0 = 0x100000100000; cpu->ctr = 0xb4448004; + /* + * cpu->prop_pauth is initialized in aarch64_host_initfn. + * After the register value is updated, cpu->prop_pauth needs + * to be updated. + */ + cpu->prop_pauth = cpu_isar_feature(aa64_pauth, cpu); + /* * MIDR/REVIDR/AIDR are invariant registers and not writable. * Ignore any differences between HIP09、HIP10 and HIP12 for now. -- 2.33.0