static FWCfgState *fw_cfg;
static QTAILQ_HEAD(, Rom) roms = QTAILQ_HEAD_INITIALIZER(roms);
-int rom_enable_driver_roms;
static void rom_insert(Rom *rom)
{
int rom_add_vga(const char *file)
{
- if (!rom_enable_driver_roms)
- return 0;
return rom_add_file(file, "vgaroms", 0);
}
int rom_add_option(const char *file)
{
- if (!rom_enable_driver_roms)
- return 0;
return rom_add_file(file, "genroms", 0);
}
#define PC_ROM_ALIGN 0x800
#define PC_ROM_SIZE (PC_ROM_MAX - PC_ROM_MIN_VGA)
-extern int rom_enable_driver_roms;
int rom_add_vga(const char *file);
int rom_add_option(const char *file);
isa_bios_size,
(bios_offset + bios_size - isa_bios_size) | IO_MEM_ROM);
-
-
- rom_enable_driver_roms = 1;
option_rom_offset = qemu_ram_alloc(PC_ROM_SIZE);
cpu_register_physical_memory(PC_ROM_MIN_VGA, PC_ROM_SIZE, option_rom_offset);