[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-arm] [PATCH V1 4/4] target-arm: Hook up TCG vPMU with CPU pmu opti
From: |
Wei Huang |
Subject: |
[Qemu-arm] [PATCH V1 4/4] target-arm: Hook up TCG vPMU with CPU pmu option |
Date: |
Thu, 12 Jan 2017 02:04:18 -0500 |
Remove the checking of kvm_enabled(). With this, .pmu option can also
control vPMU under TCG mode.
Signed-off-by: Wei Huang <address@hidden>
---
target/arm/cpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/arm/cpu.c b/target/arm/cpu.c
index f5cb30a..2f87a4b 100644
--- a/target/arm/cpu.c
+++ b/target/arm/cpu.c
@@ -692,7 +692,7 @@ static void arm_cpu_realizefn(DeviceState *dev, Error
**errp)
cpu->id_aa64pfr0 &= ~0xf000;
}
- if (!cpu->has_pmu || !kvm_enabled()) {
+ if (!cpu->has_pmu) {
cpu->has_pmu = false;
unset_feature(env, ARM_FEATURE_PMU);
}
--
1.8.3.1