serial: reset state at startup
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>
This commit is contained in:
parent
5bde14078d
commit
4df7961faa
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user