Signed-off-by: Damien Hedde <damien.he...@greensocs.com> --- include/hw/core/cpu.h | 6 ++++++ include/hw/cpu/cluster.h | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h index 136973655c..38c72cbda1 100644 --- a/include/hw/core/cpu.h +++ b/include/hw/core/cpu.h @@ -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 diff --git a/include/hw/cpu/cluster.h b/include/hw/cpu/cluster.h index 53fbf36af5..09a2b86832 100644 --- a/include/hw/cpu/cluster.h +++ b/include/hw/cpu/cluster.h @@ -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 -- 2.35.1