Skip to contentSkip to conversation

target/arm/tcg: enable pmu feature for cortex a9

PATCH Superseded Nikita Ostrenkov 1 participant 1 message Nov 12, 2023

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/arm/tcg: enable pmu feature for cortex a9

From: Nikita Ostrenkov <[email protected]>

According to the technical reference manual Cortex A9 like Cortex A7 and Cortex A15 has Perfomance Unit Monitor (PMU)
https://developer.arm.com/documentation/100511/0401/performance-monitoring-unit/about-the-performance-monitoring-unit

---
 target/arm/tcg/cpu32.c | 1 +
 1 file changed, 1 insertion(+)
target/arm/tcg/cpu32.c +1 -0
index 0d5d8e307d..0008c3f890 100644
@@ -418,6 +418,7 @@ static void cortex_a9_initfn(Object *obj)
     set_feature(&cpu->env, ARM_FEATURE_NEON);
     set_feature(&cpu->env, ARM_FEATURE_THUMB2EE);
     set_feature(&cpu->env, ARM_FEATURE_EL3);
+    set_feature(&cpu->env, ARM_FEATURE_PMU);
     /*
      * Note that A9 supports the MP extensions even for
      * A9UP and single-core A9MP (which are both different
Signature · 1 line
2.34.1