[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 04/22] spapr: Respect -bios command line option for SL
From: |
Alexander Graf |
Subject: |
[Qemu-ppc] [PATCH 04/22] spapr: Respect -bios command line option for SLOF |
Date: |
Thu, 11 Jul 2013 19:01:07 +0200 |
From: Andreas Färber <address@hidden>
Allow the user to override the firmware file name rather than always
using "slof.bin".
Reported-by: Dinar Valeev <address@hidden>
Signed-off-by: Andreas Färber <address@hidden>
Signed-off-by: Alexander Graf <address@hidden>
---
hw/ppc/spapr.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
index 5c31ad3..48ae092 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -940,7 +940,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);
--
1.8.1.4
- [Qemu-ppc] [PULL 00/22] ppc patch queue 2013-07-11, Alexander Graf, 2013/07/11
- [Qemu-ppc] [PATCH 04/22] spapr: Respect -bios command line option for SLOF,
Alexander Graf <=
- [Qemu-ppc] [PATCH 09/22] PPC: Macio: Replace tabs with spaces, Alexander Graf, 2013/07/11
- [Qemu-ppc] [PATCH 05/22] pseries: move interrupt controllers to hw/intc/, Alexander Graf, 2013/07/11
- [Qemu-ppc] [PATCH 02/22] spapr: Fix compiler warnings for some versions of gcc, Alexander Graf, 2013/07/11
- [Qemu-ppc] [PATCH 12/22] PPC: dbdma: Fix debug print, Alexander Graf, 2013/07/11
- [Qemu-ppc] [PATCH 21/22] PPC: Add timer handler for newworld mac-io, Alexander Graf, 2013/07/11
- [Qemu-ppc] [PATCH 03/22] spapr: Use named enum for function remove_hpte, Alexander Graf, 2013/07/11
- [Qemu-ppc] [PATCH 22/22] PPC: dbdma: Support more multi-issue DMA requests, Alexander Graf, 2013/07/11
- [Qemu-ppc] [PATCH 18/22] PPC: dbdma: Move processing to io, Alexander Graf, 2013/07/11
- [Qemu-ppc] [PATCH 15/22] PPC: dbdma: Introduce kick function, Alexander Graf, 2013/07/11
- [Qemu-ppc] [PATCH 01/22] e600 core for MPC86xx processors, Alexander Graf, 2013/07/11