Message ID | 20201102054055.686143-4-liangpeng10@huawei.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Support disable/enable CPU features for AArch64 | expand |
diff --git a/target/arm/helper.c b/target/arm/helper.c index 97bb6b8c01b4..ba6f30e02f5f 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -6660,7 +6660,7 @@ static uint64_t id_pfr1_read(CPUARMState *env, const ARMCPRegInfo *ri) ARMCPU *cpu = env_archcpu(env); uint64_t pfr1 = cpu->isar.id_pfr1; - if (env->gicv3state) { + if (!arm_feature(&cpu->env, ARM_FEATURE_AARCH64) && env->gicv3state) { pfr1 |= 1 << 28; } return pfr1;