mirror of https://github.com/xemu-project/xemu.git
ppc/pnv: Rename "id" to "quad-id" in PnvQuad
This to avoid possible conflicts with the "id" property of QOM objects. Signed-off-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20210901094153.227671-9-clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
daf115cf9a
commit
92612f1550
|
@ -1368,10 +1368,10 @@ static void pnv_chip_quad_realize(Pnv9Chip *chip9, Error **errp)
|
||||||
sizeof(*eq), TYPE_PNV_QUAD,
|
sizeof(*eq), TYPE_PNV_QUAD,
|
||||||
&error_fatal, NULL);
|
&error_fatal, NULL);
|
||||||
|
|
||||||
object_property_set_int(OBJECT(eq), "id", core_id, &error_fatal);
|
object_property_set_int(OBJECT(eq), "quad-id", core_id, &error_fatal);
|
||||||
qdev_realize(DEVICE(eq), NULL, &error_fatal);
|
qdev_realize(DEVICE(eq), NULL, &error_fatal);
|
||||||
|
|
||||||
pnv_xscom_add_subregion(chip, PNV9_XSCOM_EQ_BASE(eq->id),
|
pnv_xscom_add_subregion(chip, PNV9_XSCOM_EQ_BASE(eq->quad_id),
|
||||||
&eq->xscom_regs);
|
&eq->xscom_regs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -407,13 +407,13 @@ static void pnv_quad_realize(DeviceState *dev, Error **errp)
|
||||||
PnvQuad *eq = PNV_QUAD(dev);
|
PnvQuad *eq = PNV_QUAD(dev);
|
||||||
char name[32];
|
char name[32];
|
||||||
|
|
||||||
snprintf(name, sizeof(name), "xscom-quad.%d", eq->id);
|
snprintf(name, sizeof(name), "xscom-quad.%d", eq->quad_id);
|
||||||
pnv_xscom_region_init(&eq->xscom_regs, OBJECT(dev), &pnv_quad_xscom_ops,
|
pnv_xscom_region_init(&eq->xscom_regs, OBJECT(dev), &pnv_quad_xscom_ops,
|
||||||
eq, name, PNV9_XSCOM_EQ_SIZE);
|
eq, name, PNV9_XSCOM_EQ_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Property pnv_quad_properties[] = {
|
static Property pnv_quad_properties[] = {
|
||||||
DEFINE_PROP_UINT32("id", PnvQuad, id, 0),
|
DEFINE_PROP_UINT32("quad-id", PnvQuad, quad_id, 0),
|
||||||
DEFINE_PROP_END_OF_LIST(),
|
DEFINE_PROP_END_OF_LIST(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -67,7 +67,7 @@ OBJECT_DECLARE_SIMPLE_TYPE(PnvQuad, PNV_QUAD)
|
||||||
struct PnvQuad {
|
struct PnvQuad {
|
||||||
DeviceState parent_obj;
|
DeviceState parent_obj;
|
||||||
|
|
||||||
uint32_t id;
|
uint32_t quad_id;
|
||||||
MemoryRegion xscom_regs;
|
MemoryRegion xscom_regs;
|
||||||
};
|
};
|
||||||
#endif /* PPC_PNV_CORE_H */
|
#endif /* PPC_PNV_CORE_H */
|
||||||
|
|
Loading…
Reference in New Issue