Revision bc798c77

b/hw/loader.c
537 537

  
538 538
static FWCfgState *fw_cfg;
539 539
static QTAILQ_HEAD(, Rom) roms = QTAILQ_HEAD_INITIALIZER(roms);
540
int rom_enable_driver_roms;
541 540

  
542 541
static void rom_insert(Rom *rom)
543 542
{
......
624 623

  
625 624
int rom_add_vga(const char *file)
626 625
{
627
    if (!rom_enable_driver_roms)
628
        return 0;
629 626
    return rom_add_file(file, "vgaroms", 0);
630 627
}
631 628

  
632 629
int rom_add_option(const char *file)
633 630
{
634
    if (!rom_enable_driver_roms)
635
        return 0;
636 631
    return rom_add_file(file, "genroms", 0);
637 632
}
638 633

  
b/hw/loader.h
41 41
#define PC_ROM_ALIGN       0x800
42 42
#define PC_ROM_SIZE        (PC_ROM_MAX - PC_ROM_MIN_VGA)
43 43

  
44
extern int rom_enable_driver_roms;
45 44
int rom_add_vga(const char *file);
46 45
int rom_add_option(const char *file);
47 46

  
b/hw/pc.c
855 855
                                 isa_bios_size,
856 856
                                 (bios_offset + bios_size - isa_bios_size) | IO_MEM_ROM);
857 857

  
858

  
859

  
860
    rom_enable_driver_roms = 1;
861 858
    option_rom_offset = qemu_ram_alloc(PC_ROM_SIZE);
862 859
    cpu_register_physical_memory(PC_ROM_MIN_VGA, PC_ROM_SIZE, option_rom_offset);
863 860

  

Also available in: Unified diff