Revision 8294a64d hw/vga.c

b/hw/vga.c
2357 2357
void vga_init_vbe(VGACommonState *s, MemoryRegion *system_memory)
2358 2358
{
2359 2359
#ifdef CONFIG_BOCHS_VBE
2360
    /* With pc-0.12 and below we map both the PCI BAR and the fixed VBE region,
2361
     * so use an alias to avoid double-mapping the same region.
2362
     */
2363
    memory_region_init_alias(&s->vram_vbe, "vram.vbe",
2364
                             &s->vram, 0, memory_region_size(&s->vram));
2360 2365
    /* XXX: use optimized standard vga accesses */
2361 2366
    memory_region_add_subregion(system_memory,
2362 2367
                                VBE_DISPI_LFB_PHYSICAL_ADDRESS,
2363
                                &s->vram);
2368
                                &s->vram_vbe);
2364 2369
    s->vbe_mapped = 1;
2365 2370
#endif 
2366 2371
}

Also available in: Unified diff