]> Git Repo - qemu.git/commitdiff
hw/arm: Silence xlnx-ep108 deprecation warning during tests
authorThomas Huth <[email protected]>
Thu, 16 Nov 2017 15:29:43 +0000 (16:29 +0100)
committerPeter Maydell <[email protected]>
Mon, 20 Nov 2017 13:48:27 +0000 (13:48 +0000)
The new deprecation warning for the xlnx-ep108 machine also pops up
during "make check" which is kind of confusing. Silence it if testing
mode is enabled.

Signed-off-by: Thomas Huth <[email protected]>
Reviewed-by: Alistair Francis <[email protected]>
Acked-by: Wei Huang <[email protected]>
Message-id: 1510846183[email protected]
Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Peter Maydell <[email protected]>
hw/arm/xlnx-zcu102.c

index 9631a538474364a0f441e77f278ea3145e9dd99d..bbe7d046e46c547fd50ebd6d3966c9b15cbe737b 100644 (file)
@@ -24,6 +24,7 @@
 #include "qemu/error-report.h"
 #include "exec/address-spaces.h"
 #include "qemu/log.h"
+#include "sysemu/qtest.h"
 
 typedef struct XlnxZCU102 {
     MachineState parent_obj;
@@ -164,8 +165,10 @@ static void xlnx_ep108_init(MachineState *machine)
 {
     XlnxZCU102 *s = EP108_MACHINE(machine);
 
-    info_report("The Xilinx EP108 machine is deprecated, please use the "
-                "ZCU102 machine instead. It has the same features supported.");
+    if (!qtest_enabled()) {
+        info_report("The Xilinx EP108 machine is deprecated, please use the "
+                    "ZCU102 machine (which has the same features) instead.");
+    }
 
     xlnx_zynqmp_init(s, machine);
 }
This page took 0.027113 seconds and 4 git commands to generate.