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

{

    ISADevice *d = ISA_DEVICE(dev);

    PVPanicState *s = ISA_PVPANIC_DEVICE(dev);

    static bool port_configured;

    FWCfgState *fw_cfg;



    isa_register_ioport(d, &s->io, s->ioport);



    if (!port_configured) {

        fw_cfg = fw_cfg_find();

        if (fw_cfg) {

            fw_cfg_add_file(fw_cfg, "etc/pvpanic-port",

                            g_memdup(&s->ioport, sizeof(s->ioport)),

                            sizeof(s->ioport));

            port_configured = true;

        }

    }

}

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

{

    ISADevice *d = ISA_DEVICE(dev);

    PVPanicState *s = ISA_PVPANIC_DEVICE(dev);

    static bool port_configured;

    FWCfgState *fw_cfg;



    isa_register_ioport(d, &s->io, s->ioport);



    if (!port_configured) {

        fw_cfg = fw_cfg_find();

        if (fw_cfg) {

            fw_cfg_add_file(fw_cfg, "etc/pvpanic-port",

                            g_memdup(&s->ioport, sizeof(s->ioport)),

                            sizeof(s->ioport));

            port_configured = true;

        }

    }

}

    static bool port_configured;     FWCfgState *fw_cfg;     if (!port_configured) {         fw_cfg = fw_cfg_find();         if (fw_cfg) {             fw_cfg_add_file(fw_cfg, "etc/pvpanic-port",                             g_memdup(&s->ioport, sizeof(s->ioport)),                             sizeof(s->ioport));             port_configured = true;
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)

{

    ISADevice *d = ISA_DEVICE(VAR_0);

    PVPanicState *s = ISA_PVPANIC_DEVICE(VAR_0);

    static bool VAR_2;

    FWCfgState *fw_cfg;



    isa_register_ioport(d, &s->io, s->ioport);



    if (!VAR_2) {

        fw_cfg = fw_cfg_find();

        if (fw_cfg) {

            fw_cfg_add_file(fw_cfg, "etc/pvpanic-port",

                            g_memdup(&s->ioport, sizeof(s->ioport)),

                            sizeof(s->ioport));

            VAR_2 = true;

        }

    }

}

static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{ ISADevice *d = ISA_DEVICE(VAR_0); PVPanicState *s = ISA_PVPANIC_DEVICE(VAR_0); static bool VAR_2; FWCfgState *fw_cfg; isa_register_ioport(d, &s->io, s->ioport); if (!VAR_2) { fw_cfg = fw_cfg_find(); if (fw_cfg) { fw_cfg_add_file(fw_cfg, "etc/pvpanic-port",
g_memdup(&s->ioport, sizeof(s->ioport)),
sizeof(s->ioport)); VAR_2 = true; } } }