]> Git Repo - qemu.git/commitdiff
riscv/boot: Fixup the RISC-V firmware warning
authorAlistair Francis <[email protected]>
Mon, 22 Jul 2019 20:20:40 +0000 (13:20 -0700)
committerPalmer Dabbelt <[email protected]>
Fri, 26 Jul 2019 23:03:48 +0000 (16:03 -0700)
Fix a typo in the warning message displayed to users, don't print the
message when running inside qtest and don't mention a specific QEMU
version for the deprecation.

Signed-off-by: Alistair Francis <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Palmer Dabbelt <[email protected]>
hw/riscv/boot.c

index 5dee63011b43bbe5863d6a9defef4214fb3442e3..6b7d322e857cd254f53761ef6b0a3d65c3725f17 100644 (file)
@@ -26,6 +26,7 @@
 #include "hw/riscv/boot.h"
 #include "hw/boards.h"
 #include "elf.h"
+#include "sysemu/qtest.h"
 
 #if defined(TARGET_RISCV32)
 # define KERNEL_BOOT_ADDRESS 0x80400000
@@ -46,10 +47,13 @@ void riscv_find_and_load_firmware(MachineState *machine,
          * In the future this defaul will change to loading the prebuilt
          * OpenSBI firmware. Let's warn the user and then continue.
         */
-        warn_report("No -bios option specified. Not loading a firmware.");
-        warn_report("This default will change in QEMU 4.3. Please use the " \
-                    "-bios option to aviod breakages when this happens.");
-        warn_report("See QEMU's deprecation documentation for details");
+        if (!qtest_enabled()) {
+            warn_report("No -bios option specified. Not loading a firmware.");
+            warn_report("This default will change in a future QEMU release. " \
+                        "Please use the -bios option to avoid breakages when "\
+                        "this happens.");
+            warn_report("See QEMU's deprecation documentation for details.");
+        }
         return;
     }
 
This page took 0.026747 seconds and 4 git commands to generate.