Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Feb 12, 2024
1 parent d1e1191 commit aa59e2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions riscv_cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,8 @@ int target_write_slow(RISCVCPUState *s, target_ulong addr,
const char b =
((val & (1 << reg_gpio_xx_o)) == 0)
? '0' : '1';
char notify[] = "{\"nuttxemu\":{\"gpio29\":0}}\n";
notify[strlen(notify) - 4] = b;
char notify[] = "{\"nuttxemu\":{\"gpio29\":0}}\r\n";
notify[strlen(notify) - 5] = b;
print_console(NULL, notify, strlen(notify));
}
default: // Unknown Memory-Mapped I/O
Expand Down

0 comments on commit aa59e2b

Please sign in to comment.