Revision b584726d hw/ppc_oldworld.c

b/hw/ppc_oldworld.c
125 125
    char buf[1024];
126 126
    qemu_irq *pic, **heathrow_irqs;
127 127
    int linux_boot, i;
128
    ram_addr_t ram_offset, vga_ram_offset, bios_offset, vga_bios_offset;
128
    ram_addr_t ram_offset, bios_offset, vga_bios_offset;
129 129
    uint32_t kernel_base, initrd_base;
130 130
    int32_t kernel_size, initrd_size;
131 131
    PCIBus *pci_bus;
......
169 169
    ram_offset = qemu_ram_alloc(ram_size);
170 170
    cpu_register_physical_memory(0, ram_size, ram_offset);
171 171

  
172
    /* allocate VGA RAM */
173
    vga_ram_offset = qemu_ram_alloc(vga_ram_size);
174

  
175 172
    /* allocate and load BIOS */
176 173
    bios_offset = qemu_ram_alloc(BIOS_SIZE);
177 174
    if (bios_name == NULL)
......
303 300
    }
304 301
    pic = heathrow_pic_init(&pic_mem_index, 1, heathrow_irqs);
305 302
    pci_bus = pci_grackle_init(0xfec00000, pic);
306
    pci_vga_init(pci_bus, phys_ram_base + vga_ram_offset,
307
                 vga_ram_offset, vga_ram_size,
303
    pci_vga_init(pci_bus, vga_ram_size,
308 304
                 vga_bios_offset, vga_bios_size);
309 305

  
310 306
    escc_mem_index = escc_init(0x80013000, pic[0x0f], pic[0x10], serial_hds[0],

Also available in: Unified diff