mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
vga: drop get_system_memory() from vga devices and derivatives
Instead, use the bus accessors, or get the address space directly from the board constructor. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
f5e6fed879
commit
be20f9e902
11 changed files with 37 additions and 34 deletions
2
hw/qxl.c
2
hw/qxl.c
|
@ -1598,7 +1598,7 @@ static int qxl_init_primary(PCIDevice *dev)
|
|||
ram_size = 32 * 1024 * 1024;
|
||||
}
|
||||
vga_common_init(vga, ram_size);
|
||||
vga_init(vga);
|
||||
vga_init(vga, pci_address_space(dev));
|
||||
register_ioport_write(0x3c0, 16, 1, qxl_vga_ioport_write, vga);
|
||||
register_ioport_write(0x3b4, 2, 1, qxl_vga_ioport_write, vga);
|
||||
register_ioport_write(0x3d4, 2, 1, qxl_vga_ioport_write, vga);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue