From aa59e2bead7bfbf77277a10b5ddee0f1b11887c2 Mon Sep 17 00:00:00 2001 From: Lee Lup Yuen Date: Mon, 12 Feb 2024 21:20:17 +0800 Subject: [PATCH] Clean up --- riscv_cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/riscv_cpu.c b/riscv_cpu.c index 55625cd..3e3de56 100644 --- a/riscv_cpu.c +++ b/riscv_cpu.c @@ -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