diff options
author | Peter Maydell | 2018-04-20 16:52:42 +0200 |
---|---|---|
committer | Peter Maydell | 2018-04-26 14:57:00 +0200 |
commit | a8d78cd0ab6204b6ee8897e30d0fbb9c8979ddca (patch) | |
tree | 719affc6a1da412235d02a233aac64aaf6bda1c6 /hw/arm/boot.c | |
parent | hw/xtensa/xtfpga.c: Don't create "null" chardevs for serial devices (diff) | |
download | qemu-a8d78cd0ab6204b6ee8897e30d0fbb9c8979ddca.tar.gz qemu-a8d78cd0ab6204b6ee8897e30d0fbb9c8979ddca.tar.xz qemu-a8d78cd0ab6204b6ee8897e30d0fbb9c8979ddca.zip |
vl.c: Provide accessor function serial_hd() for serial_hds[] array
Provide an accessor function serial_hd() to return the Chardev
(if any) associated with the numbered serial port. This will
be used to replace direct accesses to the serial_hds[] array,
so that calling code doesn't need to care about the size of
that array.
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-7-peter.maydell@linaro.org
Diffstat (limited to 'hw/arm/boot.c')
0 files changed, 0 insertions, 0 deletions