qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

hw/char/xilinx_uartlite: Replace hw_error() by qemu_log_mask()

hw_error() calls exit(). This a bit overkill when we can log
the accesses as unimplemented or guest error.

When fuzzing the devices, we don't want the whole process to
exit. Replace some hw_error() calls by qemu_log_mask().

Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20200518140309.5220-4-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

authored by

Philippe Mathieu-Daudé and committed by
Peter Maydell
492edf3e 5a0001ec

+3 -2
+3 -2
hw/char/xilinx_uartlite.c
··· 23 23 */ 24 24 25 25 #include "qemu/osdep.h" 26 - #include "hw/hw.h" 26 + #include "qemu/log.h" 27 27 #include "hw/irq.h" 28 28 #include "hw/qdev-properties.h" 29 29 #include "hw/sysbus.h" ··· 135 135 switch (addr) 136 136 { 137 137 case R_STATUS: 138 - hw_error("write to UART STATUS?\n"); 138 + qemu_log_mask(LOG_GUEST_ERROR, "%s: write to UART STATUS\n", 139 + __func__); 139 140 break; 140 141 141 142 case R_CTRL: