Skip to contentSkip to conversation

fix serial emulation

PATCH New Stefano Stabellini 1 participant 1 message Aug 7, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix serial emulation

There is a small bug on the serial emulation code that prevents kgdb from working correctly over the serial.
This patch fixes it.

---

hw/serial.c +1 -1
index d090a2b..8e161dd 100644
@@ -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;