提交 4df7961f 编写于 作者: P Paolo Bonzini

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: NPaolo Bonzini <pbonzini@redhat.com>
上级 5bde1407
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册