qemu-e2k/hw/char
Peter Crosthwaite 9121d02cb3 char/cadence_uart: Fix reset for unattached instances
commit 1db8b5efe0 introduced an issue
where QEMU would segfault if you have an unattached Cadence UART.

Fix by guarding the flush-on-reset logic on there being a qemu_chr
attachment.

Reported-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Tested-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Message-id: 9009578ee10a50d994b2e10aa2840d73765f5968.1370577272.git.peter.crosthwaite@xilinx.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2013-07-15 12:28:07 +01:00
..
Makefile.objs hw: move char devices to hw/char/, configure via default-configs/ 2013-04-08 18:13:14 +02:00
cadence_uart.c char/cadence_uart: Fix reset for unattached instances 2013-07-15 12:28:07 +01:00
debugcon.c hw/c*: pass owner to memory_region_init* functions 2013-07-04 17:42:47 +02:00
escc.c hw/c*: pass owner to memory_region_init* functions 2013-07-04 17:42:47 +02:00
etraxfs_ser.c hw/c*: pass owner to memory_region_init* functions 2013-07-04 17:42:47 +02:00
exynos4210_uart.c hw/c*: pass owner to memory_region_init* functions 2013-07-04 17:42:47 +02:00
grlib_apbuart.c hw/c*: pass owner to memory_region_init* functions 2013-07-04 17:42:47 +02:00
imx_serial.c hw/c*: pass owner to memory_region_init* functions 2013-07-04 17:42:47 +02:00
ipack.c hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
ipack.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
ipoctal232.c sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
lm32_juart.c sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
lm32_uart.c hw/c*: pass owner to memory_region_init* functions 2013-07-04 17:42:47 +02:00
mcf_uart.c memory: add owner argument to initialization functions 2013-07-04 17:42:44 +02:00
milkymist-uart.c hw/c*: pass owner to memory_region_init* functions 2013-07-04 17:42:47 +02:00
omap_uart.c memory: add owner argument to initialization functions 2013-07-04 17:42:44 +02:00
parallel.c memory: add owner argument to initialization functions 2013-07-04 17:42:44 +02:00
pl011.c hw/c*: pass owner to memory_region_init* functions 2013-07-04 17:42:47 +02:00
sclpconsole.c sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
serial-isa.c hw/c*: pass owner to memory_region_init* functions 2013-07-04 17:42:47 +02:00
serial-pci.c hw/c*: pass owner to memory_region_init* functions 2013-07-04 17:42:47 +02:00
serial.c memory: add owner argument to initialization functions 2013-07-04 17:42:44 +02:00
sh_serial.c memory: add owner argument to initialization functions 2013-07-04 17:42:44 +02:00
spapr_vty.c pseries: Convert VIO code to QOM style type safe(ish) casts 2013-04-26 23:02:41 +02:00
tpci200.c hw/c*: pass owner to memory_region_init* functions 2013-07-04 17:42:47 +02:00
virtio-console.c virtio-console: Remove any pending watches on close 2013-04-16 11:52:09 +02:00
virtio-serial-bus.c virtio-serial: fix command line compatibility. 2013-05-03 12:05:15 -05:00
xen_console.c sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
xilinx_uartlite.c hw/c*: pass owner to memory_region_init* functions 2013-07-04 17:42:47 +02:00