summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2018-04-20 15:52:48 +0100
committerPeter Maydell <peter.maydell@linaro.org>2018-04-26 13:57:00 +0100
commit6af2692e86f9fdfb3d3d291c2708e81c3125d8e5 (patch)
tree33a4d343ec5fbb347d122405c8cd345e4b098b0f /include
parent2cd4f8acb0e3416c7431d0e48d03f1a4c4a64cc1 (diff)
downloadqemu-6af2692e86f9fdfb3d3d291c2708e81c3125d8e5.zip
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
Diffstat (limited to 'include')
-rw-r--r--include/sysemu/sysemu.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h
index bd5b55c514..989cbc2b7b 100644
--- a/include/sysemu/sysemu.h
+++ b/include/sysemu/sysemu.h
@@ -161,8 +161,6 @@ void hmp_pcie_aer_inject_error(Monitor *mon, const QDict *qdict);
#define MAX_SERIAL_PORTS 4
-extern Chardev *serial_hds[MAX_SERIAL_PORTS];
-
/* Return the Chardev for serial port i, or NULL if none */
Chardev *serial_hd(int i);