From: Qiang Liu Date: Mon, 8 Aug 2022 08:01:16 +0000 (+0800) Subject: xlnx_dp: drop unsupported AUXCommand in xlnx_dp_aux_set_command X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9390da5ef29a5e0f98e5b482dceeeb287c452f17;p=qemu.git xlnx_dp: drop unsupported AUXCommand in xlnx_dp_aux_set_command In xlnx_dp_aux_set_command, when the command leads to the default branch, xlxn-dp will abort and then crash. This patch removes this abort and drops this operation. Fixes: 58ac482 ("introduce xlnx-dp") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/411 Reported-by: Qiang Liu Tested-by: Qiang Liu Suggested-by: Thomas Huth Signed-off-by: Qiang Liu Reviewed-by: Thomas Huth Reviewed-by: Frederic Konrad Message-Id: <20220808080116.2184881-1-cyruscyliu@gmail.com> Signed-off-by: Laurent Vivier --- diff --git a/hw/display/xlnx_dp.c b/hw/display/xlnx_dp.c index a071c81883..b0828d65aa 100644 --- a/hw/display/xlnx_dp.c +++ b/hw/display/xlnx_dp.c @@ -532,8 +532,8 @@ static void xlnx_dp_aux_set_command(XlnxDPState *s, uint32_t value) qemu_log_mask(LOG_UNIMP, "xlnx_dp: Write i2c status not implemented\n"); break; default: - error_report("%s: invalid command: %u", __func__, cmd); - abort(); + qemu_log_mask(LOG_GUEST_ERROR, "%s: invalid command: %u", __func__, cmd); + return; } s->core_registers[DP_INTERRUPT_SIGNAL_STATE] |= 0x04;