sim: serial: Send '\r\n' instead of just '\n'
authorStafford Horne <shorne@gmail.com>
Tue, 9 Oct 2018 02:16:05 +0000 (11:16 +0900)
committerStafford Horne <shorne@gmail.com>
Tue, 9 Oct 2018 02:18:11 +0000 (11:18 +0900)
commit8877dba7e96115ffbc406461919fca0d5aee8b0b
tree126ca4f9e6851aa3e2b6be8fd4d9ebbdc9125ecb
parent6e327cda2697d37b23f607a5a7712363dc60857a
sim: serial: Send '\r\n' instead of just '\n'

This fixes an issue when running with the HDMI2USB firmware which
expects \r\n to come from the UART.  Since the verilator adapter
is just sending \n commands cannot be executed.

Also, one minor whitespace cleanup. (could remove if needed)
litex/build/sim/core/modules/serial2console/serial2console.c