mirror of https://gitee.com/openkylin/qemu.git
Merge remote-tracking branch 'mjt/trivial-patches' into staging
# By Michael Tokarev (1) and Vladimir Senkov (1) # Via Michael Tokarev * mjt/trivial-patches: char/serial: fix copy&paste error (fifo8_is_full vs empty) vl: always define no_frame Message-id: 1371455050-9523-1-git-send-email-mjt@msgid.tls.msk.ru Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
commit
b7a3b1cde2
|
@ -424,7 +424,7 @@ static uint64_t serial_ioport_read(void *opaque, hwaddr addr, unsigned size)
|
|||
ret = s->divider & 0xff;
|
||||
} else {
|
||||
if(s->fcr & UART_FCR_FE) {
|
||||
ret = fifo8_is_full(&s->recv_fifo) ?
|
||||
ret = fifo8_is_empty(&s->recv_fifo) ?
|
||||
0 : fifo8_pop(&s->recv_fifo);
|
||||
if (s->recv_fifo.num == 0) {
|
||||
s->lsr &= ~(UART_LSR_DR | UART_LSR_BI);
|
||||
|
|
Loading…
Reference in New Issue