diff options
Diffstat (limited to 'hw/char/lm32_uart.c')
-rw-r--r-- | hw/char/lm32_uart.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/char/lm32_uart.c b/hw/char/lm32_uart.c index 39cad494f8..837a46e8e1 100644 --- a/hw/char/lm32_uart.c +++ b/hw/char/lm32_uart.c @@ -285,6 +285,8 @@ static void lm32_uart_class_init(ObjectClass *klass, void *data) k->init = lm32_uart_init; dc->reset = uart_reset; dc->vmsd = &vmstate_lm32_uart; + /* Reason: init() method uses qemu_char_get_next_serial() */ + dc->cannot_instantiate_with_device_add_yet = true; } static const TypeInfo lm32_uart_info = { |