mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
arm: remove bios_name
Get the firmware name from the MachineState object. Cc: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20201026143028.3034018-4-pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
2c4a83eb82
commit
0ad3b5d3ee
7 changed files with 15 additions and 14 deletions
|
@ -560,7 +560,7 @@ static void vexpress_common_init(MachineState *machine)
|
|||
/*
|
||||
* If a bios file was provided, attempt to map it into memory
|
||||
*/
|
||||
if (bios_name) {
|
||||
if (machine->firmware) {
|
||||
char *fn;
|
||||
int image_size;
|
||||
|
||||
|
@ -570,16 +570,16 @@ static void vexpress_common_init(MachineState *machine)
|
|||
"but you cannot use both options at once");
|
||||
exit(1);
|
||||
}
|
||||
fn = qemu_find_file(QEMU_FILE_TYPE_BIOS, bios_name);
|
||||
fn = qemu_find_file(QEMU_FILE_TYPE_BIOS, machine->firmware);
|
||||
if (!fn) {
|
||||
error_report("Could not find ROM image '%s'", bios_name);
|
||||
error_report("Could not find ROM image '%s'", machine->firmware);
|
||||
exit(1);
|
||||
}
|
||||
image_size = load_image_targphys(fn, map[VE_NORFLASH0],
|
||||
VEXPRESS_FLASH_SIZE);
|
||||
g_free(fn);
|
||||
if (image_size < 0) {
|
||||
error_report("Could not load ROM image '%s'", bios_name);
|
||||
error_report("Could not load ROM image '%s'", machine->firmware);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue