Skip to content

Commit

Permalink
hw/tricore: Log failing test in testdevice
Browse files Browse the repository at this point in the history
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Message-ID: <20230913105326.40832-3-kbastian@mail.uni-paderborn.de>
  • Loading branch information
bkoppelmann committed Sep 28, 2023
1 parent 8c3cf3f commit d224aab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hw/tricore/tricore_testdevice.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@
*/

#include "qemu/osdep.h"
#include "qemu/log.h"
#include "hw/sysbus.h"
#include "hw/qdev-properties.h"
#include "hw/tricore/tricore_testdevice.h"

static void tricore_testdevice_write(void *opaque, hwaddr offset,
uint64_t value, unsigned size)
{
if (value != 0) {
qemu_log_mask(LOG_GUEST_ERROR, "Test %ld failed!\n", value);
}
exit(value);
}

Expand Down

0 comments on commit d224aab

Please sign in to comment.