projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5bde140
)
serial: reset state at startup
author
Paolo Bonzini
<pbonzini@redhat.com>
Tue, 26 Aug 2014 10:16:57 +0000
(12:16 +0200)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Fri, 19 Sep 2014 08:50:07 +0000
(10:50 +0200)
When a serial port is started, its initial state is all zero. Make
it consistent with reset state instead.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/char/serial.c
patch
|
blob
|
history
diff --git
a/hw/char/serial.c
b/hw/char/serial.c
index a668249049ea0be0f2d42d22a2012b560226c341..847dacc9c47eb1d56acb6a0eb1549e9b3c06234b 100644
(file)
--- a/
hw/char/serial.c
+++ b/
hw/char/serial.c
@@
-833,6
+833,7
@@
void serial_realize_core(SerialState *s, Error **errp)
serial_event, s);
fifo8_create(&s->recv_fifo, UART_FIFO_LENGTH);
fifo8_create(&s->xmit_fifo, UART_FIFO_LENGTH);
+ serial_reset(s);
}
void serial_exit_core(SerialState *s)