]> git.proxmox.com Git - mirror_qemu.git/commit - hw/ppc/pnv.c
serial-isa: Use MAX_ISA_SERIAL_PORTS instead of MAX_SERIAL_PORTS
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 20 Apr 2018 14:52:46 +0000 (15:52 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 26 Apr 2018 12:57:00 +0000 (13:57 +0100)
commitdef337ffda34d331404bd7f1a42726b71500df22
tree6f0a8cd4a3a6b765f8e4be1d2cb313072b0d0e1d
parent97274d0c05d45ec8dbddfaac74d8b292ae8154a2
serial-isa: Use MAX_ISA_SERIAL_PORTS instead of MAX_SERIAL_PORTS

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.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20180420145249.32435-11-peter.maydell@linaro.org
hw/char/serial-isa.c
hw/i386/pc.c
hw/mips/mips_r4k.c
hw/ppc/pnv.c
hw/sparc64/sun4u.c
include/hw/char/serial.h