]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/char/stm32f2xx_usart.c
hw: replace most use of qemu_chr_fe_write with qemu_chr_fe_write_all
[mirror_qemu.git] / hw / char / stm32f2xx_usart.c
index 15657abda9f687ee60c2f5a733effd9a439f2eab..4c6640dbe91829a6f028911144bb9686f8df9631 100644 (file)
@@ -153,6 +153,8 @@ static void stm32f2xx_usart_write(void *opaque, hwaddr addr,
         if (value < 0xF000) {
             ch = value;
             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);
             }
             s->usart_sr |= USART_SR_TC;