vl.c: Remove compile time limit on number of serial ports
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 20 Apr 2018 14:52:48 +0000 (15:52 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 26 Apr 2018 12:57:00 +0000 (13:57 +0100)
commit6af2692e86f9fdfb3d3d291c2708e81c3125d8e5
tree33a4d343ec5fbb347d122405c8cd345e4b098b0f
parent2cd4f8acb0e3416c7431d0e48d03f1a4c4a64cc1
vl.c: Remove compile time limit on number of serial ports

Instead of having a fixed sized global serial_hds[] array,
use a local dynamically reallocated one, so we don't have
a compile time limit on how many serial ports a system has.

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