Received: from eggs.gnu.org ([2001:4830:134:3::10]:43740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuShk-0004B3-82 for qemu-devel@nongnu.org; Wed, 03 Jul 2013 15:27:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UuShi-00039n-QO for qemu-devel@nongnu.org; Wed, 03 Jul 2013 15:27:04 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Wed, 3 Jul 2013 21:26:50 +0200 Message-Id: <1372879610-23949-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH] spapr: Respect -bios command line option for SLOF List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexey Kardashevskiy , Alexander Graf , "open list:sPAPR" , Dinar Valeev , =?UTF-8?q?Andreas=20F=C3=A4rber?= Allow the user to override the firmware file name rather than always using "slof.bin". Reported-by: Dinar Valeev Cc: Alexey Kardashevskiy Signed-off-by: Andreas F=C3=A4rber --- 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 fe34291..bebf55c 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -949,7 +949,10 @@ static void ppc_spapr_init(QEMUMachineInitArgs *args= ) } } =20 - filename =3D qemu_find_file(QEMU_FILE_TYPE_BIOS, FW_FILE_NAME); + if (bios_name =3D=3D NULL) { + bios_name =3D FW_FILE_NAME; + } + filename =3D qemu_find_file(QEMU_FILE_TYPE_BIOS, bios_name); fw_size =3D load_image_targphys(filename, 0, FW_MAX_SIZE); if (fw_size < 0) { hw_error("qemu: could not load LPAR rtas '%s'\n", filename); --=20 1.8.1.4