Skip to contentSkip to conversation

qtest: Output cleanup

PATCH Applied Andreas Färber 3 participants 8 messages Jul 29, 2013 – Aug 2, 2013

lore
Share & tools
lore
#2 lore raw

PATCH 2/5 mips_fulong2e: Silence BIOS loading warning for qtest

In reply to Andreas Färber
---
 hw/mips/mips_fulong2e.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
hw/mips/mips_fulong2e.c +3 -1
index 9901441..b13750d 100644
@@ -43,6 +43,7 @@
 #include "hw/timer/i8254.h"
 #include "sysemu/blockdev.h"
 #include "exec/address-spaces.h"
+#include "sysemu/qtest.h"
 
 #define DEBUG_FULONG2E_INIT
 
@@ -332,7 +333,8 @@ static void mips_fulong2e_init(QEMUMachineInitArgs *args)
             bios_size = -1;
         }
 
-        if ((bios_size < 0 || bios_size > BIOS_SIZE) && !kernel_filename) {
+        if ((bios_size < 0 || bios_size > BIOS_SIZE) &&
+            !kernel_filename && !qtest_enabled()) {
             fprintf(stderr, "qemu: Warning, could not load MIPS bios '%s'\n", bios_name);
         }
     }
Signature · 1 line
1.8.1.4
#0 lore raw

cover qtest: Output cleanup

Hello,

This mini-series cleans up noisy make check output from endian-test.

Regards,
Andreas

Cc Anthony Liguori <[email protected]>
Cc Paolo Bonzini <[email protected]>

Andreas Färber (5):
target-ppc: Suppress TCG instruction emulation warnings for qtest
mips_fulong2e: Silence BIOS loading warning for qtest
mips_malta: Silence BIOS loading warning for qtest
mips_jazz: Silence BIOS loading warning for qtest
mips_r4k: Silence BIOS loading warning for qtest

 hw/mips/mips_fulong2e.c     | 4 +++-
 hw/mips/mips_jazz.c         | 3 ++-
 hw/mips/mips_malta.c        | 4 +++-
 hw/mips/mips_r4k.c          | 4 ++--
 target-ppc/translate_init.c | 2 +-
 5 files changed, 11 insertions(+), 6 deletions(-)
Signature · 1 line
1.8.1.4
#3 lore raw

PATCH 3/5 mips_malta: Silence BIOS loading warning for qtest

---
 hw/mips/mips_malta.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
hw/mips/mips_malta.c +3 -1
index 1589b59..f56f34f 100644
@@ -48,6 +48,7 @@
 #include "exec/address-spaces.h"
 #include "hw/sysbus.h"             /* SysBusDevice */
 #include "qemu/host-utils.h"
+#include "sysemu/qtest.h"
 
 //#define DEBUG_BOARD_INIT
 
@@ -1005,7 +1006,8 @@ void mips_malta_init(QEMUMachineInitArgs *args)
             } else {
                 bios_size = -1;
             }
-            if ((bios_size < 0 || bios_size > BIOS_SIZE) && !kernel_filename) {
+            if ((bios_size < 0 || bios_size > BIOS_SIZE) &&
+                !kernel_filename && !qtest_enabled()) {
                 fprintf(stderr,
                         "qemu: Warning, could not load MIPS bios '%s', and no -kernel argument was specified\n",
                         bios_name);
Signature · 1 line
1.8.1.4
#4 lore raw

PATCH 4/5 mips_jazz: Silence BIOS loading warning for qtest

In reply to Andreas Färber
---
 hw/mips/mips_jazz.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
hw/mips/mips_jazz.c +2 -1
index d6e0860..36677cc 100644
@@ -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);
     }
Signature · 1 line
1.8.1.4
#1 lore raw

PATCH 1/5 target-ppc: Suppress TCG instruction emulation warnings for qtest

In reply to Andreas Färber
---
 target-ppc/translate_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target-ppc/translate_init.c +1 -1
index 8215946..4fc022d 100644
@@ -7825,7 +7825,7 @@ static void ppc_cpu_realizefn(DeviceState *dev, Error **errp)
             error_setg(errp, "Unable to virtualize selected CPU with KVM");
             return;
         }
-    } else {
+    } else if (tcg_enabled()) {
         if (ppc_fixup_cpu(cpu) != 0) {
             error_setg(errp, "Unable to emulate selected CPU with TCG");
             return;
Signature · 1 line
1.8.1.4
#5 lore raw

PATCH 5/5 mips_r4k: Silence BIOS loading warning for qtest

In reply to Andreas Färber
---
 hw/mips/mips_r4k.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
hw/mips/mips_r4k.c +2 -2
index 7af08b8..044f232 100644
@@ -26,6 +26,7 @@
 #include "hw/timer/i8254.h"
 #include "sysemu/blockdev.h"
 #include "exec/address-spaces.h"
+#include "sysemu/qtest.h"
 
 #define MAX_IDE_BUS 2
 
@@ -244,8 +245,7 @@ void mips_r4k_init(QEMUMachineInitArgs *args)
                                    4, 0, 0, 0, 0, be)) {
             fprintf(stderr, "qemu: Error registering flash memory.\n");
 	}
-    }
-    else {
+    } else if (!qtest_enabled()) {
 	/* not fatal */
         fprintf(stderr, "qemu: Warning, could not load MIPS bios '%s'\n",
 		bios_name);
Signature · 1 line
1.8.1.4
Reviewed-by on the v1 series
#6 lore raw
In reply to Andreas Färber
Quoted 4 lines · Andreas Färber

Hello,

This mini-series cleans up noisy make check output from endian-test.

Although this is pretty ugly to have to do. It would be nicer to have something as a machine property indicating that the machine type requires -kernel to be useful.

Regards,

Anthony Liguori

Quoted 22 lines

Regards,
Andreas

Cc Anthony Liguori <[email protected]>
Cc Paolo Bonzini <[email protected]>

Andreas Färber (5):
target-ppc: Suppress TCG instruction emulation warnings for qtest
mips_fulong2e: Silence BIOS loading warning for qtest
mips_malta: Silence BIOS loading warning for qtest
mips_jazz: Silence BIOS loading warning for qtest
mips_r4k: Silence BIOS loading warning for qtest

 hw/mips/mips_fulong2e.c     | 4 +++-
 hw/mips/mips_jazz.c         | 3 ++-
 hw/mips/mips_malta.c        | 4 +++-
 hw/mips/mips_r4k.c          | 4 ++--
 target-ppc/translate_init.c | 2 +-
 5 files changed, 11 insertions(+), 6 deletions(-)
Signature · 1 line
1.8.1.4