From: Keir Fraser Date: Fri, 8 Aug 2008 09:47:10 +0000 (+0100) Subject: fix typo in serial emulation X-Git-Tag: xen-3.3.0-rc4~1 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=23d262a03e20e37059e02de4e8c75b101d1fdc74;p=qemu-xen-4.0-testing.git 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/hw/serial.c b/hw/serial.c index d090a2b0..8e161dda 100644 --- a/hw/serial.c +++ b/hw/serial.c @@ -219,7 +219,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;