summaryrefslogtreecommitdiffstats
path: root/hw/serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/serial.c')
-rw-r--r--hw/serial.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/hw/serial.c b/hw/serial.c
index df67383..586c366 100644
--- a/hw/serial.c
+++ b/hw/serial.c
@@ -371,15 +371,15 @@ static void serial_ioport_write(void *opaque, uint32_t addr, uint32_t val)
} else {
s->thr = (uint8_t) val;
if(s->fcr & UART_FCR_FE) {
- fifo_put(s, XMIT_FIFO, s->thr);
- s->thr_ipending = 0;
- s->lsr &= ~UART_LSR_TEMT;
- s->lsr &= ~UART_LSR_THRE;
- serial_update_irq(s);
+ fifo_put(s, XMIT_FIFO, s->thr);
+ s->thr_ipending = 0;
+ s->lsr &= ~UART_LSR_TEMT;
+ s->lsr &= ~UART_LSR_THRE;
+ serial_update_irq(s);
} else {
- s->thr_ipending = 0;
- s->lsr &= ~UART_LSR_THRE;
- serial_update_irq(s);
+ s->thr_ipending = 0;
+ s->lsr &= ~UART_LSR_THRE;
+ serial_update_irq(s);
}
serial_xmit(s);
}
OpenPOWER on IntegriCloud