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 3, 2024
1 parent 43b1790 commit 3c9e2a6
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 3c9e2a6

Please sign in to comment.