@@ -1054,5 +1054,11 @@ extern const VMStateDescription vmstate_cpu_common;
#define UNASSIGNED_CPU_INDEX -1
#define UNASSIGNED_CLUSTER_INDEX -1
+/*
+ * This limit is imposed by TCG, which puts the cluster ID into an
+ * 8 bit field. Default being all-1s, custom index cannot be set to
+ * more than 254.
+ */
+#define MAX_CLUSTERS 255
#endif
@@ -57,12 +57,6 @@
#define TYPE_CPU_CLUSTER "cpu-cluster"
OBJECT_DECLARE_SIMPLE_TYPE(CPUClusterState, CPU_CLUSTER)
-/*
- * This limit is imposed by TCG, which puts the cluster ID into an
- * 8 bit field (and uses all-1s for the default "not in any cluster").
- */
-#define MAX_CLUSTERS 255
-
/**
* CPUClusterState:
* @cluster_id: The cluster ID. This value is for internal use only and should
Signed-off-by: Damien Hedde <damien.hedde@greensocs.com> --- include/hw/core/cpu.h | 6 ++++++ include/hw/cpu/cluster.h | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-)