hw/loongarch: virt: support up to 4 serial ports
authorJason A. Donenfeld <Jason@zx2c4.com>
Sat, 7 Sep 2024 14:34:39 +0000 (16:34 +0200)
committerSong Gao <gaosong@loongson.cn>
Thu, 12 Sep 2024 12:57:50 +0000 (20:57 +0800)
commitb3d4ef83485f31e5fc20bbc7a17c6712b0f903dd
tree6e6d2eb00a529423f3a2c2af6ac1d9632231af13
parent32c22cc47cf9b99d53aa698c612a215609fdb6c7
hw/loongarch: virt: support up to 4 serial ports

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.

Fixed: https://lore.kernel.org/all/20240907143439.2792924-1-Jason@zx2c4.com/

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Tested-by: Bibo Mao <maobibo@loongson.cn>
[gaosong: ACPI uart need't reverse order]
Signed-off-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20240907143439.2792924-1-Jason@zx2c4.com>
hw/loongarch/acpi-build.c
hw/loongarch/virt.c
include/hw/pci-host/ls7a.h