From f12e7e1b68e50603e4f31a75c5769d357e30f7c0 Mon Sep 17 00:00:00 2001 From: Ross Thompson Date: Mon, 22 Nov 2021 15:23:19 -0600 Subject: [PATCH] Added QEMU hack for initial LCR value in uart. --- wally-pipelined/src/uncore/uartPC16550D.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wally-pipelined/src/uncore/uartPC16550D.sv b/wally-pipelined/src/uncore/uartPC16550D.sv index 52a08735..e4abba5d 100644 --- a/wally-pipelined/src/uncore/uartPC16550D.sv +++ b/wally-pipelined/src/uncore/uartPC16550D.sv @@ -133,7 +133,7 @@ module uartPC16550D( if (~HRESETn) begin // Table 3 Reset Configuration IER <= #1 4'b0; FCR <= #1 8'b0; - LCR <= #1 8'b11; + if (~QEMU) LCR <= #1 8'b11 else LCR <= #1 8'b0; MCR <= #1 5'b0; LSR <= #1 8'b01100000; MSR <= #1 4'b0;