aboutsummaryrefslogtreecommitdiff
path: root/hw/char/milkymist-uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/char/milkymist-uart.c')
-rw-r--r--hw/char/milkymist-uart.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/char/milkymist-uart.c b/hw/char/milkymist-uart.c
index d05b825340..b79ea09874 100644
--- a/hw/char/milkymist-uart.c
+++ b/hw/char/milkymist-uart.c
@@ -199,6 +199,7 @@ static void milkymist_uart_realize(DeviceState *dev, Error **errp)
{
MilkymistUartState *s = MILKYMIST_UART(dev);
+ /* FIXME use a qdev chardev prop instead of qemu_char_get_next_serial() */
s->chr = qemu_char_get_next_serial();
if (s->chr) {
qemu_chr_add_handlers(s->chr, uart_can_rx, uart_rx, uart_event, s);