static DeviceState *slavio_intctl_init(target_phys_addr_t addr,

                                       target_phys_addr_t addrg,

                                       qemu_irq **parent_irq)

{

    DeviceState *dev;

    SysBusDevice *s;

    unsigned int i, j;



    dev = qdev_create(NULL, "slavio_intctl");

    qdev_init(dev);



    s = sysbus_from_qdev(dev);



    for (i = 0; i < MAX_CPUS; i++) {

        for (j = 0; j < MAX_PILS; j++) {

            sysbus_connect_irq(s, i * MAX_PILS + j, parent_irq[i][j]);

        }

    }

    sysbus_mmio_map(s, 0, addrg);

    for (i = 0; i < MAX_CPUS; i++) {

        sysbus_mmio_map(s, i + 1, addr + i * TARGET_PAGE_SIZE);

    }



    return dev;

}

static DeviceState *slavio_intctl_init(target_phys_addr_t addr,

                                       target_phys_addr_t addrg,

                                       qemu_irq **parent_irq)

{

    DeviceState *dev;

    SysBusDevice *s;

    unsigned int i, j;



    dev = qdev_create(NULL, "slavio_intctl");

    qdev_init(dev);



    s = sysbus_from_qdev(dev);



    for (i = 0; i < MAX_CPUS; i++) {

        for (j = 0; j < MAX_PILS; j++) {

            sysbus_connect_irq(s, i * MAX_PILS + j, parent_irq[i][j]);

        }

    }

    sysbus_mmio_map(s, 0, addrg);

    for (i = 0; i < MAX_CPUS; i++) {

        sysbus_mmio_map(s, i + 1, addr + i * TARGET_PAGE_SIZE);

    }



    return dev;

}

    qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);     qdev_init(dev);
static DeviceState *FUNC_0(target_phys_addr_t addr,

                                       target_phys_addr_t addrg,

                                       qemu_irq **parent_irq)

{

    DeviceState *dev;

    SysBusDevice *s;

    unsigned int VAR_0, VAR_1;



    dev = qdev_create(NULL, "slavio_intctl");

    qdev_init(dev);



    s = sysbus_from_qdev(dev);



    for (VAR_0 = 0; VAR_0 < MAX_CPUS; VAR_0++) {

        for (VAR_1 = 0; VAR_1 < MAX_PILS; VAR_1++) {

            sysbus_connect_irq(s, VAR_0 * MAX_PILS + VAR_1, parent_irq[VAR_0][VAR_1]);

        }

    }

    sysbus_mmio_map(s, 0, addrg);

    for (VAR_0 = 0; VAR_0 < MAX_CPUS; VAR_0++) {

        sysbus_mmio_map(s, VAR_0 + 1, addr + VAR_0 * TARGET_PAGE_SIZE);

    }



    return dev;

}

static DeviceState *FUNC_0(target_phys_addr_t addr,
target_phys_addr_t addrg,
qemu_irq **parent_irq)
{ DeviceState *dev; SysBusDevice *s; unsigned int VAR_0, VAR_1; dev = qdev_create(NULL, "slavio_intctl"); qdev_init(dev); s = sysbus_from_qdev(dev); for (VAR_0 = 0; VAR_0 < MAX_CPUS; VAR_0++) { for (VAR_1 = 0; VAR_1 < MAX_PILS; VAR_1++) { sysbus_connect_irq(s, VAR_0 * MAX_PILS + VAR_1, parent_irq[VAR_0][VAR_1]); } } sysbus_mmio_map(s, 0, addrg); for (VAR_0 = 0; VAR_0 < MAX_CPUS; VAR_0++) { sysbus_mmio_map(s, VAR_0 + 1, addr + VAR_0 * TARGET_PAGE_SIZE); } return dev; }