Re: [PATCH] hw/loongarch: virt: support up to 4 serial ports

2024-09-06 Thread Jason A. Donenfeld
On Fri, Sep 06, 2024 at 04:34:53PM +0800, maobibo wrote: > > +for (i = 0; i < VIRT_UART_COUNT; ++i) { > How about adding serial_hd(i) checking here, such as >for (i = 0; (i < VIRT_UART_COUNT) && serial_hd(i); ++i) { That doesn't seem to do anything, unfortunately. > > > +hwaddr b

Re: [PATCH] hw/loongarch: virt: support up to 4 serial ports

2024-09-06 Thread maobibo
On 2024/9/6 下午12:49, Jason A. Donenfeld wrote: In order to support additional channels of communication using `-serial`, add several serial ports, up to the standard 4 generally supported by the 8250 driver. Signed-off-by: Jason A. Donenfeld --- hw/loongarch/virt.c| 24

[PATCH] hw/loongarch: virt: support up to 4 serial ports

2024-09-05 Thread Jason A. Donenfeld
In order to support additional channels of communication using `-serial`, add several serial ports, up to the standard 4 generally supported by the 8250 driver. Signed-off-by: Jason A. Donenfeld --- hw/loongarch/virt.c| 24 ++-- include/hw/pci-host/ls7a.h | 9 +--