Skip to content

Commit

Permalink
serial: reset state at startup
Browse files Browse the repository at this point in the history
When a serial port is started, its initial state is all zero.  Make
it consistent with reset state instead.

Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
bonzini committed Sep 19, 2014
1 parent 5bde140 commit 4df7961
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hw/char/serial.c
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 4df7961

Please sign in to comment.