diff options
| author | Gerd Hoffmann <kraxel@redhat.com> | 2009-10-26 12:18:25 +0100 |
|---|---|---|
| committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-30 08:39:29 -0500 |
| commit | de2aff17a31c47e28757d426fb3384eed20eb2e5 (patch) | |
| tree | 16df32e5c08ef624ce7c60f559c16757e6635c55 /hw/pc.c | |
| parent | 14a3f32d9e0c955a63b046fd3542127d1778520b (diff) | |
| download | focaccia-qemu-de2aff17a31c47e28757d426fb3384eed20eb2e5.tar.gz focaccia-qemu-de2aff17a31c47e28757d426fb3384eed20eb2e5.zip | |
rom loader: make vga+rom loading configurable.
The rom_add_vga() and rom_add_option() macros are transformed into functions. They look at the new rom_enable_driver_roms variable and only do something if it is set to non-zero, making vga+option rom loading runtime option. pc_init() sets rom_enable_driver_roms to 1. With this in place we can move the rom loading calls from pc.c to the individual drivers. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/pc.c')
| -rw-r--r-- | hw/pc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/pc.c b/hw/pc.c index 4cd8ec65db..c7b8c50190 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -1137,6 +1137,7 @@ static void pc_init1(ram_addr_t ram_size, + 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); |