static void icp_realize(DeviceState *dev, Error **errp)

{

    ICPState *icp = ICP(dev);

    ICPStateClass *icpc = ICP_GET_CLASS(dev);

    Object *obj;

    Error *err = NULL;



    obj = object_property_get_link(OBJECT(dev), ICP_PROP_XICS, &err);

    if (!obj) {

        error_setg(errp, "%s: required link '" ICP_PROP_XICS "' not found: %s",

                   __func__, error_get_pretty(err));

        return;

    }



    icp->xics = XICS_FABRIC(obj);



    if (icpc->realize) {

        icpc->realize(dev, errp);

    }



    qemu_register_reset(icp_reset, dev);

}

static void icp_realize(DeviceState *dev, Error **errp)

{

    ICPState *icp = ICP(dev);

    ICPStateClass *icpc = ICP_GET_CLASS(dev);

    Object *obj;

    Error *err = NULL;



    obj = object_property_get_link(OBJECT(dev), ICP_PROP_XICS, &err);

    if (!obj) {

        error_setg(errp, "%s: required link '" ICP_PROP_XICS "' not found: %s",

                   __func__, error_get_pretty(err));

        return;

    }



    icp->xics = XICS_FABRIC(obj);



    if (icpc->realize) {

        icpc->realize(dev, errp);

    }



    qemu_register_reset(icp_reset, dev);

}

static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)

{

    ICPState *icp = ICP(VAR_0);

    ICPStateClass *icpc = ICP_GET_CLASS(VAR_0);

    Object *obj;

    Error *err = NULL;



    obj = object_property_get_link(OBJECT(VAR_0), ICP_PROP_XICS, &err);

    if (!obj) {

        error_setg(VAR_1, "%s: required link '" ICP_PROP_XICS "' not found: %s",

                   __func__, error_get_pretty(err));

        return;

    }



    icp->xics = XICS_FABRIC(obj);



    if (icpc->realize) {

        icpc->realize(VAR_0, VAR_1);

    }



    qemu_register_reset(icp_reset, VAR_0);

}

static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{ ICPState *icp = ICP(VAR_0); ICPStateClass *icpc = ICP_GET_CLASS(VAR_0); Object *obj; Error *err = NULL; obj = object_property_get_link(OBJECT(VAR_0), ICP_PROP_XICS, &err); if (!obj) { error_setg(VAR_1, "%s: required link '" ICP_PROP_XICS "' not found: %s",
__func__, error_get_pretty(err)); return; } icp->xics = XICS_FABRIC(obj); if (icpc->realize) { icpc->realize(VAR_0, VAR_1); } qemu_register_reset(icp_reset, VAR_0); }