static void qxl_realize_secondary(PCIDevice *dev, Error **errp)

{

    static int device_id = 1;

    PCIQXLDevice *qxl = PCI_QXL(dev);



    qxl->id = device_id++;

    qxl_init_ramsize(qxl);

    memory_region_init_ram(&qxl->vga.vram, OBJECT(dev), "qxl.vgavram",

                           qxl->vga.vram_size, &error_abort);

    vmstate_register_ram(&qxl->vga.vram, &qxl->pci.qdev);

    qxl->vga.vram_ptr = memory_region_get_ram_ptr(&qxl->vga.vram);

    qxl->vga.con = graphic_console_init(DEVICE(dev), 0, &qxl_ops, qxl);



    qxl_realize_common(qxl, errp);

}

static void qxl_realize_secondary(PCIDevice *dev, Error **errp)

{

    static int device_id = 1;

    PCIQXLDevice *qxl = PCI_QXL(dev);



    qxl->id = device_id++;

    qxl_init_ramsize(qxl);

    memory_region_init_ram(&qxl->vga.vram, OBJECT(dev), "qxl.vgavram",

                           qxl->vga.vram_size, &error_abort);

    vmstate_register_ram(&qxl->vga.vram, &qxl->pci.qdev);

    qxl->vga.vram_ptr = memory_region_get_ram_ptr(&qxl->vga.vram);

    qxl->vga.con = graphic_console_init(DEVICE(dev), 0, &qxl_ops, qxl);



    qxl_realize_common(qxl, errp);

}

                           qxl->vga.vram_size, &error_abort);
static void FUNC_0(PCIDevice *VAR_0, Error **VAR_1)

{

    static int VAR_2 = 1;

    PCIQXLDevice *qxl = PCI_QXL(VAR_0);



    qxl->id = VAR_2++;

    qxl_init_ramsize(qxl);

    memory_region_init_ram(&qxl->vga.vram, OBJECT(VAR_0), "qxl.vgavram",

                           qxl->vga.vram_size, &error_abort);

    vmstate_register_ram(&qxl->vga.vram, &qxl->pci.qdev);

    qxl->vga.vram_ptr = memory_region_get_ram_ptr(&qxl->vga.vram);

    qxl->vga.con = graphic_console_init(DEVICE(VAR_0), 0, &qxl_ops, qxl);



    qxl_realize_common(qxl, VAR_1);

}

static void FUNC_0(PCIDevice *VAR_0, Error **VAR_1)
{ static int VAR_2 = 1; PCIQXLDevice *qxl = PCI_QXL(VAR_0); qxl->id = VAR_2++; qxl_init_ramsize(qxl); memory_region_init_ram(&qxl->vga.vram, OBJECT(VAR_0), "qxl.vgavram",
qxl->vga.vram_size, &error_abort); vmstate_register_ram(&qxl->vga.vram, &qxl->pci.qdev); qxl->vga.vram_ptr = memory_region_get_ram_ptr(&qxl->vga.vram); qxl->vga.con = graphic_console_init(DEVICE(VAR_0), 0, &qxl_ops, qxl); qxl_realize_common(qxl, VAR_1); }