xlnx_dp: drop unsupported AUXCommand in xlnx_dp_aux_set_command
PATCH 1/1 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.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/411
--- hw/display/xlnx_dp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
hw/display/xlnx_dp.c +2 -2
@@ -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 ;
Signature · 1 line
2.25.1
Quoted 46 lines
-----Original Message-----
From: Qemu-devel <qemu-devel- [email protected]> On Behalf Of Qiang Liu
Sent: 08 August 2022 08:55
To: [email protected]
Cc: Qiang Liu <[email protected]>; Thomas Huth <[email protected]>; Alistair Francis <[email protected]>; Edgar E. Iglesias <[email protected]>; Peter Maydell <[email protected]>; open list:Xilinx ZynqMP and... <[email protected]>
Subject: [PATCH]xlnx_dp: drop unsupported AUXCommand inxlnx_dp_aux_set_commandIn
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 <[email protected]>Tested-by Qiang Liu <[email protected]>Suggested-by Thomas Huth <[email protected]>Signed-off-by Qiang Liu <[email protected]>--- hw/display/xlnx_dp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)hw/display/xlnx_dp.c +2
-2@@ -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;
Quoted 3 lines
--
2.25.1
Looks good to me.