spapr: Respect -bios command line option for SLOF
PATCH 1/1 spapr: Respect -bios command line option for SLOF
Allow the user to override the firmware file name rather than always using "slof.bin".
Reported-by Dinar Valeev <[email protected]>
Cc Alexey Kardashevskiy <[email protected]>
Signed-off-by Andreas Färber <[email protected]>
--- hw/ppc/spapr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
hw/ppc/spapr.c +4 -1
@@ -949,7 +949,10 @@ static void ppc_spapr_init(QEMUMachineInitArgs *args) } } - filename =qemu_find_file (QEMU_FILE_TYPE_BIOS ,FW_FILE_NAME ); +if (bios_name ==NULL ) { + bios_name =FW_FILE_NAME ; + } + filename =qemu_find_file (QEMU_FILE_TYPE_BIOS , bios_name); fw_size =load_image_targphys (filename,0 ,FW_MAX_SIZE );if (fw_size <0 ) {hw_error ("qemu: could not load LPAR rtas '%s'\n" , filename);
Signature · 1 line
1.8.1.4
Alexander Graf
AppliedQuoted 6 lines · Andreas Färber
Allow the user to override the firmware file name rather than always using "slof.bin".
Reported-by Dinar Valeev <[email protected]>Cc Alexey Kardashevskiy <[email protected]>Signed-off-by Andreas Färber <[email protected]>
Thanks, applied to ppc-next.
Alex
Quoted 23 lines
---
hw/ppc/spapr.c| 5 ++++-1 file changed, 4 insertions(+), 1 deletion(-)hw/ppc/spapr.c +4
-1@@ -949,7 +949,10 @@ static void ppc_spapr_init(QEMUMachineInitArgs *args) } } - filename =qemu_find_file (QEMU_FILE_TYPE_BIOS ,FW_FILE_NAME ); +if (bios_name ==NULL ) { + bios_name =FW_FILE_NAME ; + } + filename =qemu_find_file (QEMU_FILE_TYPE_BIOS , bios_name); fw_size =load_image_targphys (filename,0 ,FW_MAX_SIZE );if (fw_size <0 ) {hw_error ("qemu: could not load LPAR rtas '%s'\n" , filename);Signature · 1 line
1.8.1.4