aboutsummaryrefslogtreecommitdiff
path: root/hw/arm
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2017-11-16 16:29:43 +0100
committerPeter Maydell <peter.maydell@linaro.org>2017-11-20 13:48:27 +0000
commitb350ae138fcb062f49904f5115cc5fe188a02906 (patch)
tree55c3b2553c4f8aa788730b1f67b51a8e4ac232a5 /hw/arm
parentb6e70d1d7fea681306a3c8e74934b66dc9524969 (diff)
hw/arm: Silence xlnx-ep108 deprecation warning during tests
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 <thuth@redhat.com> Reviewed-by: Alistair Francis <alistair.francis@xilinx.com> Acked-by: Wei Huang <wei@redhat.com> Message-id: 1510846183-756-1-git-send-email-thuth@redhat.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm')
-rw-r--r--hw/arm/xlnx-zcu102.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/hw/arm/xlnx-zcu102.c b/hw/arm/xlnx-zcu102.c
index 9631a53847..bbe7d046e4 100644
--- a/hw/arm/xlnx-zcu102.c
+++ b/hw/arm/xlnx-zcu102.c
@@ -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);
}