On 20.04.2018 16:52, Peter Maydell wrote: > The ISA serial port handling in serial-isa.c imposes a limit > of 4 serial ports. This is because we only know of 4 IO port > and IRQ settings for them, and is unrelated to the generic > MAX_SERIAL_PORTS limit, though they happen to both be set at > 4 currently. > > Use a new MAX_ISA_SERIAL_PORTS wherever that is the correct > limit to be checking against. > > Signed-off-by: Peter Maydell <peter.mayd...@linaro.org> > --- > include/hw/char/serial.h | 3 +++ > hw/char/serial-isa.c | 10 +++++----- > hw/i386/pc.c | 2 +- > hw/mips/mips_r4k.c | 2 +- > hw/ppc/pnv.c | 2 +- > hw/sparc64/sun4u.c | 2 +- > 6 files changed, 12 insertions(+), 9 deletions(-)
Reviewed-by: Thomas Huth <th...@redhat.com>