ppc/pegasos2: Suppress warning when qtest enabled
PATCH 1/1 ppc/pegasos2: Suppress warning when qtest enabled
Suggested-by Peter Maydell <[email protected]>
Signed-off-by BALATON Zoltan <[email protected]>
--- hw/ppc/pegasos2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
hw/ppc/pegasos2.c +2 -1
@@ -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." ); }
Signature · 1 line
2.21.4
Quoted 5 lines · BALATON Zoltan
Suggested-by Peter Maydell<[email protected]>Signed-off-by BALATON Zoltan<[email protected]>--- hw/ppc/pegasos2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Reviewed-by Richard Henderson <[email protected]>
r~
David Gibson
AppliedQuoted 2 lines · BALATON Zoltan
Suggested-by Peter Maydell <[email protected]>Signed-off-by BALATON Zoltan <[email protected]>
Applied to ppc-for-6.2, thanks.
Quoted 25 lines
--- hw/ppc/pegasos2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)hw/ppc/pegasos2.c +2
-1@@ -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." ); }
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson