diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-02-14 07:24:03 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-02-14 07:24:03 +0000 |
commit | 937fe7de5e43224f69d6210a7c98282a0d868b0b (patch) | |
tree | bdf6a28d98d9f030d501d7b112d576437419f522 /hw | |
parent | ad998303657a38c2da24ed057a20696eb8ee6779 (diff) | |
download | qemu-937fe7de5e43224f69d6210a7c98282a0d868b0b.tar.gz qemu-937fe7de5e43224f69d6210a7c98282a0d868b0b.tar.bz2 qemu-937fe7de5e43224f69d6210a7c98282a0d868b0b.zip |
Remove conditional rom loading support
Commit c2039bd0ffce8807e0eaac55254fde790825fa92 made rom loading
automatic for non-PC architectures. Remove now mostly unused
conditional rom loading support.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/loader.c | 5 | ||||
-rw-r--r-- | hw/loader.h | 1 | ||||
-rw-r--r-- | hw/pc.c | 3 |
3 files changed, 0 insertions, 9 deletions
diff --git a/hw/loader.c b/hw/loader.c index b3bbd77d1e..1448887e5e 100644 --- a/hw/loader.c +++ b/hw/loader.c @@ -537,7 +537,6 @@ struct Rom { static FWCfgState *fw_cfg; static QTAILQ_HEAD(, Rom) roms = QTAILQ_HEAD_INITIALIZER(roms); -int rom_enable_driver_roms; static void rom_insert(Rom *rom) { @@ -624,15 +623,11 @@ int rom_add_blob(const char *name, const void *blob, size_t len, 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); } diff --git a/hw/loader.h b/hw/loader.h index 8ff3c94456..56676e16c7 100644 --- a/hw/loader.h +++ b/hw/loader.h @@ -41,7 +41,6 @@ void do_info_roms(Monitor *mon); #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); @@ -855,9 +855,6 @@ static void pc_init1(ram_addr_t ram_size, 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); |