Revert "target/arm: Make number of counters in PMCR follow the CPU"
This reverts commit f7fb73b8. This change turned out to be a bit half-baked, and doesn't work with KVM, which fails with the error: "qemu-system-aarch64: Failed to retrieve host CPU features" because KVM does not allow accessing of the PMCR_EL0 value in the scratch "query CPU ID registers" VM unless we have first set the KVM_ARM_VCPU_PMU_V3 feature on the VM. Revert the change for 6.0. Reported-by:Zenghui Yu <yuzenghui@huawei.com> Signed-off-by:
Peter Maydell <peter.maydell@linaro.org> Tested-by:
Zenghui Yu <yuzenghui@huawei.com> Message-id: 20210331154822.23332-1-peter.maydell@linaro.org
Showing
- target/arm/cpu.h 0 additions, 1 deletiontarget/arm/cpu.h
- target/arm/cpu64.c 0 additions, 3 deletionstarget/arm/cpu64.c
- target/arm/cpu_tcg.c 0 additions, 5 deletionstarget/arm/cpu_tcg.c
- target/arm/helper.c 12 additions, 17 deletionstarget/arm/helper.c
- target/arm/kvm64.c 0 additions, 2 deletionstarget/arm/kvm64.c
Loading
Please register or sign in to comment