mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-08 07:40:34 +00:00
Allocate the -vmwarevga framebuffer in the right place in RAM.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4200 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
f54b3f920f
commit
6f9bc13263
@ -58,6 +58,7 @@ struct vmsvga_state_s {
|
|||||||
#ifndef EMBED_STDVGA
|
#ifndef EMBED_STDVGA
|
||||||
DisplayState *ds;
|
DisplayState *ds;
|
||||||
int vram_size;
|
int vram_size;
|
||||||
|
ram_addr_t vram_offset;
|
||||||
#endif
|
#endif
|
||||||
uint8_t *vram;
|
uint8_t *vram;
|
||||||
target_phys_addr_t vram_base;
|
target_phys_addr_t vram_base;
|
||||||
@ -1114,6 +1115,7 @@ static void vmsvga_init(struct vmsvga_state_s *s, DisplayState *ds,
|
|||||||
s->ds = ds;
|
s->ds = ds;
|
||||||
s->vram = vga_ram_base;
|
s->vram = vga_ram_base;
|
||||||
s->vram_size = vga_ram_size;
|
s->vram_size = vga_ram_size;
|
||||||
|
s->vram_offset = vga_ram_offset;
|
||||||
|
|
||||||
s->scratch_size = SVGA_SCRATCH_SIZE;
|
s->scratch_size = SVGA_SCRATCH_SIZE;
|
||||||
s->scratch = (uint32_t *) qemu_malloc(s->scratch_size * 4);
|
s->scratch = (uint32_t *) qemu_malloc(s->scratch_size * 4);
|
||||||
@ -1186,7 +1188,7 @@ static void pci_vmsvga_map_mem(PCIDevice *pci_dev, int region_num,
|
|||||||
iomemtype = cpu_register_io_memory(0, vmsvga_vram_read,
|
iomemtype = cpu_register_io_memory(0, vmsvga_vram_read,
|
||||||
vmsvga_vram_write, s);
|
vmsvga_vram_write, s);
|
||||||
#else
|
#else
|
||||||
iomemtype = 0 | IO_MEM_RAM;
|
iomemtype = s->vram_offset | IO_MEM_RAM;
|
||||||
#endif
|
#endif
|
||||||
cpu_register_physical_memory(s->vram_base, s->vram_size,
|
cpu_register_physical_memory(s->vram_base, s->vram_size,
|
||||||
iomemtype);
|
iomemtype);
|
||||||
|
Loading…
Reference in New Issue
Block a user