]> Git Repo - qemu.git/blobdiff - target/arm/cpu64.c
target/arm: Add a core count property
[qemu.git] / target / arm / cpu64.c
index 4228713b1991852235e7524b291278e86cf53544..dd9ba973f7366b8ac657a48f05061e67a88890be 100644 (file)
@@ -42,8 +42,10 @@ static inline void unset_feature(CPUARMState *env, int feature)
 #ifndef CONFIG_USER_ONLY
 static uint64_t a57_a53_l2ctlr_read(CPUARMState *env, const ARMCPRegInfo *ri)
 {
-    /* Number of processors is in [25:24]; otherwise we RAZ */
-    return (smp_cpus - 1) << 24;
+    ARMCPU *cpu = arm_env_get_cpu(env);
+
+    /* Number of cores is in [25:24]; otherwise we RAZ */
+    return (cpu->core_count - 1) << 24;
 }
 #endif
 
This page took 0.025711 seconds and 4 git commands to generate.