ioemu: fix typo in serial emulation
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 8 Aug 2008 09:46:39 +0000 (10:46 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 8 Aug 2008 09:46:39 +0000 (10:46 +0100)
There is a small bug on the serial emulation code that prevents kgdb
from working correctly over the serial.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/ioemu/hw/serial.c

index 30d9fbe620cb0bf430327109aad466903117564d..b0e0ec960d5ee45ce802381dc0964482d854703b 100644 (file)
@@ -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;