From 3c9e2a6c4c4f4892f6ec8aa8044ac47c06ea2a6a Mon Sep 17 00:00:00 2001 From: Yangyu Chen Date: Sat, 3 Feb 2024 17:44:41 +0800 Subject: [PATCH] [subsystememu] do not output eof --- subsystememu/csrc/dpic.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/subsystememu/csrc/dpic.cc b/subsystememu/csrc/dpic.cc index 593358281d..b8b410905e 100644 --- a/subsystememu/csrc/dpic.cc +++ b/subsystememu/csrc/dpic.cc @@ -184,11 +184,13 @@ extern "C" void AXI4MMIODPI( while (uart.exist_tx()) { char c = uart.getc(); - printf("%c",c); - fflush(stdout); if (c == -1) { exit(0); } + else { + printf("%c",c); + fflush(stdout); + } } // CTRL END }