@@ -60,17 +60,10 @@ OBJECT_DECLARE_TYPE(CPUClusterState, CPUClusterClass, CPU_CLUSTER)
/**
* CPUClusterState:
- * @cluster_id: The cluster ID. This value is for internal use only and should
- * not be exposed directly to the user or to the guest.
- *
- * State of a CPU cluster.
*/
struct CPUClusterState {
/*< private >*/
CpusState parent_obj;
-
- /*< public >*/
- uint32_t cluster_id;
};
/**
@@ -42,7 +42,6 @@ static int add_cpu_to_cluster(Object *obj, void *opaque)
static void cpu_cluster_realize(DeviceState *dev, Error **errp)
{
CPUClusterClass *ccc = CPU_CLUSTER_GET_CLASS(dev);
- CPUClusterState *cluster = CPU_CLUSTER(dev);
CpusState *base = CPUS(dev);
Object *cluster_obj = OBJECT(dev);
@@ -64,12 +63,6 @@ static void cpu_cluster_realize(DeviceState *dev, Error **errp)
/* realize base class (will set cluster field to true) */
ccc->parent_realize(dev, errp);
-
- /*
- * Temporarily copy the cluster id from the base class as
- * gdbstub still uses our field.
- */
- cluster->cluster_id = base->cluster_index;
}
static void cpu_cluster_class_init(ObjectClass *klass, void *data)
Signed-off-by: Damien Hedde <damien.hedde@greensocs.com> --- include/hw/cpu/cluster.h | 7 ------- hw/cpu/cluster.c | 7 ------- 2 files changed, 14 deletions(-)