Revision b584726d hw/ppc_newworld.c

b/hw/ppc_newworld.c
97 97
    qemu_irq *pic, **openpic_irqs;
98 98
    int unin_memory;
99 99
    int linux_boot, i;
100
    ram_addr_t ram_offset, vga_ram_offset, bios_offset, vga_bios_offset;
100
    ram_addr_t ram_offset, bios_offset, vga_bios_offset;
101 101
    uint32_t kernel_base, kernel_size, initrd_base, initrd_size;
102 102
    PCIBus *pci_bus;
103 103
    MacIONVRAMState *nvr;
......
136 136
    ram_offset = qemu_ram_alloc(ram_size);
137 137
    cpu_register_physical_memory(0, ram_size, ram_offset);
138 138

  
139
    /* allocate VGA RAM */
140
    vga_ram_offset = qemu_ram_alloc(vga_ram_size);
141

  
142 139
    /* allocate and load BIOS */
143 140
    bios_offset = qemu_ram_alloc(BIOS_SIZE);
144 141
    if (bios_name == NULL)
......
288 285
    pic = openpic_init(NULL, &pic_mem_index, smp_cpus, openpic_irqs, NULL);
289 286
    pci_bus = pci_pmac_init(pic);
290 287
    /* init basic PC hardware */
291
    pci_vga_init(pci_bus, phys_ram_base + vga_ram_offset,
292
                 vga_ram_offset, vga_ram_size,
288
    pci_vga_init(pci_bus, vga_ram_size,
293 289
                 vga_bios_offset, vga_bios_size);
294 290

  
295 291
    /* XXX: suppress that */

Also available in: Unified diff