diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-10-26 12:18:26 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-30 08:39:29 -0500 |
commit | f8ea6ec89fb244928c93602245f43236ff452cc1 (patch) | |
tree | 653b3ea6f40b313fffc4cb977d3fd2edc582e8ed /hw/cirrus_vga.c | |
parent | 221986732813281492675e12002d1af03a6f7005 (diff) | |
download | qemu-f8ea6ec89fb244928c93602245f43236ff452cc1.tar.gz qemu-f8ea6ec89fb244928c93602245f43236ff452cc1.tar.bz2 qemu-f8ea6ec89fb244928c93602245f43236ff452cc1.zip |
vga roms: move loading from pc.c to vga drivers.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/cirrus_vga.c')
-rw-r--r-- | hw/cirrus_vga.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c index 9dfe76a49b..f4c9cdf8a6 100644 --- a/hw/cirrus_vga.c +++ b/hw/cirrus_vga.c @@ -32,6 +32,7 @@ #include "console.h" #include "vga_int.h" #include "kvm.h" +#include "loader.h" /* * TODO: @@ -3162,6 +3163,7 @@ void isa_cirrus_vga_init(void) s->vga.screen_dump, s->vga.text_update, &s->vga); vmstate_register(0, &vmstate_cirrus_vga, s); + rom_add_vga(VGABIOS_CIRRUS_FILENAME); /* XXX ISA-LFB support */ } @@ -3245,7 +3247,9 @@ static int pci_cirrus_vga_initfn(PCIDevice *dev) PCI_ADDRESS_SPACE_MEM, cirrus_pci_mmio_map); } vmstate_register(0, &vmstate_pci_cirrus_vga, d); - /* XXX: ROM BIOS */ + + /* ROM BIOS */ + rom_add_vga(VGABIOS_CIRRUS_FILENAME); return 0; } |