]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/char/digic-uart.c
hw: replace most use of qemu_chr_fe_write with qemu_chr_fe_write_all
[mirror_qemu.git] / hw / char / digic-uart.c
index c7604e6766aaed23ac1e7425912433893d7bc33b..e96a9b2d8d8b6fc315dfdedfa47b15301c223426 100644 (file)
@@ -77,6 +77,8 @@ static void digic_uart_write(void *opaque, hwaddr addr, uint64_t value,
     switch (addr) {
     case R_TX:
         if (s->chr) {
+            /* XXX this blocks entire thread. Rewrite to use
+             * qemu_chr_fe_write and background I/O callbacks */
             qemu_chr_fe_write_all(s->chr, &ch, 1);
         }
         break;