projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
576156f
)
cadence_uart: Handle backend tx errors
author
Edgar E. Iglesias
<edgar.iglesias@gmail.com>
Tue, 18 Jun 2013 07:22:55 +0000
(09:22 +0200)
committer
Edgar E. Iglesias
<edgar.iglesias@gmail.com>
Mon, 24 Jun 2013 14:26:52 +0000
(16:26 +0200)
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
hw/char/cadence_uart.c
patch
|
blob
|
history
diff --git
a/hw/char/cadence_uart.c
b/hw/char/cadence_uart.c
index c2a783430b5c62c70493c41488324d3100ccd3ca..205e125de98bbba6900f9101184be61c690d561a 100644
(file)
--- a/
hw/char/cadence_uart.c
+++ b/
hw/char/cadence_uart.c
@@
-297,9
+297,7
@@
static void uart_write_tx_fifo(UartState *s, const uint8_t *buf, int size)
return;
}
- while (size) {
- size -= qemu_chr_fe_write(s->chr, buf, size);
- }
+ qemu_chr_fe_write_all(s->chr, buf, size);
}
static void uart_receive(void *opaque, const uint8_t *buf, int size)