Skip to content

Commit

Permalink
[subsystememu] do not output eof
Browse files Browse the repository at this point in the history
  • Loading branch information
cyyself committed Feb 24, 2024
1 parent dccb18f commit 894f36c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions subsystememu/csrc/dpic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

Expand Down

0 comments on commit 894f36c

Please sign in to comment.