target-arm: Enable vPMU support under TCG mode
commitd6f02ce3b8a43ddd8f83553fe754a34b26fb273f
authorWei Huang <wei@redhat.com>
Fri, 10 Feb 2017 17:40:28 +0000 (10 17:40 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 10 Feb 2017 17:40:28 +0000 (10 17:40 +0000)
treef77a2d285bc9d20b66c3a11ed29c369b64c221a7
parente6ec54571e424bb1d6e50e32fe317c616cde3e05
target-arm: Enable vPMU support under TCG mode

This patch contains several fixes to enable vPMU under TCG mode. It
first removes the checking of kvm_enabled() while unsetting
ARM_FEATURE_PMU. With it, the .pmu option can be used to turn on/off vPMU
under TCG mode. Secondly the PMU node of DT table is now created under TCG.
The last fix is to disable the masking of PMUver field of ID_AA64DFR0_EL1.

Signed-off-by: Wei Huang <wei@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1486504171-26807-5-git-send-email-wei@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/virt.c
target/arm/cpu.c
target/arm/helper.c