]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/tricore: Log failing test in testdevice
authorBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Wed, 13 Sep 2023 10:53:18 +0000 (12:53 +0200)
committerBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Fri, 29 Sep 2023 06:28:02 +0000 (08:28 +0200)
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Message-ID: <20230913105326.40832-3-kbastian@mail.uni-paderborn.de>

hw/tricore/tricore_testdevice.c

index a1563aa56890953c7b96c5509ed65062e694e067..9028d970b00fba614dc1daf1f8de6baacdca3497 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #include "qemu/osdep.h"
+#include "qemu/log.h"
 #include "hw/sysbus.h"
 #include "hw/qdev-properties.h"
 #include "hw/tricore/tricore_testdevice.h"
@@ -23,6 +24,9 @@
 static void tricore_testdevice_write(void *opaque, hwaddr offset,
                                       uint64_t value, unsigned size)
 {
+    if (value != 0) {
+        qemu_log_mask(LOG_GUEST_ERROR, "Test %" PRIu64 " failed!\n", value);
+    }
     exit(value);
 }