]> xenbits.xensource.com Git - qemu-xen-3.3-testing.git/commitdiff
fix typo in serial emulation
authorKeir Fraser <kfraser@endor.localdomain>
Fri, 8 Aug 2008 09:47:10 +0000 (10:47 +0100)
committerKeir Fraser <kfraser@endor.localdomain>
Fri, 8 Aug 2008 09:47:10 +0000 (10:47 +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>
hw/serial.c

index d090a2b0b3b0ceb4590722e8a4ab2f8a73bf83dd..8e161dda6bfaee1d3357ffd5cd31a171c8527375 100644 (file)
@@ -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;