From 480d1476fcfffbd3193a3f46182c66e013bc3285 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 8 Aug 2008 10:46:39 +0100 Subject: [PATCH] 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 --- tools/ioemu/hw/serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2