Patchwork [for-1.6,4/5] mips_jazz: Silence BIOS loading warning for qtest

login
register
mail settings
Submitter Andreas Färber
Date July 29, 2013, 2:05 p.m.
Message ID <1375106733-832-5-git-send-email-afaerber@suse.de>
Download mbox | patch
Permalink /patch/262777/
State New
Headers show

Comments

Andreas Färber - July 29, 2013, 2:05 p.m.
Signed-off-by: Andreas Färber <afaerber@suse.de>
---
 hw/mips/mips_jazz.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

diff --git a/hw/mips/mips_jazz.c b/hw/mips/mips_jazz.c
index d6e0860..36677cc 100644
--- a/hw/mips/mips_jazz.c
+++ b/hw/mips/mips_jazz.c
@@ -42,6 +42,7 @@ 
 #include "sysemu/blockdev.h"
 #include "hw/sysbus.h"
 #include "exec/address-spaces.h"
+#include "sysemu/qtest.h"
 
 enum jazz_model_e
 {
@@ -176,7 +177,7 @@  static void mips_jazz_init(MemoryRegion *address_space,
     } else {
         bios_size = -1;
     }
-    if (bios_size < 0 || bios_size > MAGNUM_BIOS_SIZE) {
+    if ((bios_size < 0 || bios_size > MAGNUM_BIOS_SIZE) && !qtest_enabled()) {
         fprintf(stderr, "qemu: Warning, could not load MIPS bios '%s'\n",
                 bios_name);
     }