Revision 0beb4942 hw/lm32_uart.c
b/hw/lm32_uart.c | ||
---|---|---|
252 | 252 |
memory_region_init_io(&s->iomem, &uart_ops, s, "uart", R_MAX * 4); |
253 | 253 |
sysbus_init_mmio(dev, &s->iomem); |
254 | 254 |
|
255 |
s->chr = qdev_init_chardev(&dev->qdev);
|
|
255 |
s->chr = qemu_char_get_next_serial();
|
|
256 | 256 |
if (s->chr) { |
257 | 257 |
qemu_chr_add_handlers(s->chr, uart_can_rx, uart_rx, uart_event, s); |
258 | 258 |
} |
Also available in: Unified diff