diff options
Diffstat (limited to 'hw/lm32/lm32.h')
-rw-r--r-- | hw/lm32/lm32.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/lm32/lm32.h b/hw/lm32/lm32.h index 18aa6fdc15..a993f0046c 100644 --- a/hw/lm32/lm32.h +++ b/hw/lm32/lm32.h @@ -16,11 +16,12 @@ static inline DeviceState *lm32_pic_init(qemu_irq cpu_irq) return dev; } -static inline DeviceState *lm32_juart_init(void) +static inline DeviceState *lm32_juart_init(CharDriverState *chr) { DeviceState *dev; dev = qdev_create(NULL, TYPE_LM32_JUART); + qdev_prop_set_chr(dev, "chardev", chr); qdev_init_nofail(dev); return dev; |