diff options
author | Bastian Koppelmann <kbastian@mail.uni-paderborn.de> | 2023-09-13 12:53:18 +0200 |
---|---|---|
committer | Bastian Koppelmann <kbastian@mail.uni-paderborn.de> | 2023-09-29 08:28:02 +0200 |
commit | 6d559996447e544e93e036fc4c87f2f64defef5e (patch) | |
tree | a8d223a2dc2e6c3ed88c96a2bbbbbd37354d0370 /hw/tricore | |
parent | 8c3cf3f2bdf072b5ead13db81f1e6d879cd09bb6 (diff) |
hw/tricore: Log failing test in testdevice
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Message-ID: <20230913105326.40832-3-kbastian@mail.uni-paderborn.de>
Diffstat (limited to 'hw/tricore')
-rw-r--r-- | hw/tricore/tricore_testdevice.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/tricore/tricore_testdevice.c b/hw/tricore/tricore_testdevice.c index a1563aa568..9028d970b0 100644 --- a/hw/tricore/tricore_testdevice.c +++ b/hw/tricore/tricore_testdevice.c @@ -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); } |