From: Keir Fraser Date: Fri, 8 Aug 2008 09:46:39 +0000 (+0100) Subject: ioemu: fix typo in serial emulation X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14159^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=480d1476fcfffbd3193a3f46182c66e013bc3285;p=xen.git ioemu: fix typo in serial emulation There is a small bug on the serial emulation code that prevents kgdb from working correctly over the serial. Signed-off-by: Stefano Stabellini --- diff --git a/tools/ioemu/hw/serial.c b/tools/ioemu/hw/serial.c index 30d9fbe620..b0e0ec960d 100644 --- a/tools/ioemu/hw/serial.c +++ b/tools/ioemu/hw/serial.c @@ -211,7 +211,7 @@ static void serial_update_irq(SerialState *s) } else if ( s->timeout_ipending ) { tmp_iir = UART_IIR_CTI; } else if ( ( s->ier & UART_IER_RDI ) && (s->lsr & UART_LSR_DR ) ) { - if ( !(s->iir & UART_FCR_FE) ) { + if ( !(s->fcr & UART_FCR_FE) ) { tmp_iir = UART_IIR_RDI; } else if ( s->recv_fifo.count >= s->recv_fifo.itl ) { tmp_iir = UART_IIR_RDI;