From: BALATON Zoltan Date: Mon, 1 Nov 2021 15:08:31 +0000 (+0100) Subject: ppc/pegasos2: Suppress warning when qtest enabled X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=88adcbf2800c92fb55bf6ecfbaed8d1d21445bea;p=qmiga%2Fqemu.git ppc/pegasos2: Suppress warning when qtest enabled Suggested-by: Peter Maydell Signed-off-by: BALATON Zoltan Message-Id: <20211101151023.F0D02748F5A@zero.eik.bme.hu> Reviewed-by: Richard Henderson Signed-off-by: David Gibson --- diff --git a/hw/ppc/pegasos2.c b/hw/ppc/pegasos2.c index e427ac2fe0..298e6b93e2 100644 --- a/hw/ppc/pegasos2.c +++ b/hw/ppc/pegasos2.c @@ -23,6 +23,7 @@ #include "hw/qdev-properties.h" #include "sysemu/reset.h" #include "sysemu/runstate.h" +#include "sysemu/qtest.h" #include "hw/boards.h" #include "hw/loader.h" #include "hw/fw-path-provider.h" @@ -199,7 +200,7 @@ static void pegasos2_init(MachineState *machine) if (!pm->vof) { warn_report("Option -kernel may be ineffective with -bios."); } - } else if (pm->vof) { + } else if (pm->vof && !qtest_enabled()) { warn_report("Using Virtual OpenFirmware but no -kernel option."); }