mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
Add bootindex for option roms.
Extend -option-rom command to have additional parameter ,bootindex=. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
de1f34cb63
commit
2e55e84282
12 changed files with 60 additions and 24 deletions
|
@ -238,20 +238,20 @@ static void palmte_init(ram_addr_t ram_size,
|
|||
|
||||
/* Setup initial (reset) machine state */
|
||||
if (nb_option_roms) {
|
||||
rom_size = get_image_size(option_rom[0]);
|
||||
rom_size = get_image_size(option_rom[0].name);
|
||||
if (rom_size > flash_size) {
|
||||
fprintf(stderr, "%s: ROM image too big (%x > %x)\n",
|
||||
__FUNCTION__, rom_size, flash_size);
|
||||
rom_size = 0;
|
||||
}
|
||||
if (rom_size > 0) {
|
||||
rom_size = load_image_targphys(option_rom[0], OMAP_CS0_BASE,
|
||||
rom_size = load_image_targphys(option_rom[0].name, OMAP_CS0_BASE,
|
||||
flash_size);
|
||||
rom_loaded = 1;
|
||||
}
|
||||
if (rom_size < 0) {
|
||||
fprintf(stderr, "%s: error loading '%s'\n",
|
||||
__FUNCTION__, option_rom[0]);
|
||||
__FUNCTION__, option_rom[0].name);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue