vl.c: new function serial_max_hds()
commitb8846a4d6352b2a1d2012f8b3b9115640524aeda
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 20 Apr 2018 14:52:49 +0000 (20 15:52 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 26 Apr 2018 12:58:29 +0000 (26 13:58 +0100)
treed9cdc0080393509f1b1ba693504ede9ad7cf5536
parent6af2692e86f9fdfb3d3d291c2708e81c3125d8e5
vl.c: new function serial_max_hds()

Create a new function serial_max_hds() which returns the number of
serial ports defined by the user. This is needed only by spapr.

This allows us to remove the MAX_SERIAL_PORTS define.

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-14-peter.maydell@linaro.org
hw/ppc/spapr.c
include/sysemu/sysemu.h
vl.c