diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2012-10-17 09:54:20 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-10-22 13:26:42 -0500 |
commit | 419ad67208a37367932a5bf88d3860f85e06282c (patch) | |
tree | 520c2681926eff73db642c9c08dcde1758ff9f7f /hw/serial.c | |
parent | 488cb996cd8d8eaa5ecfdc6ba5f6cbd23a13271b (diff) |
serial: add pci variant
So we get a hot-pluggable 16550 uart.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/serial.c')
-rw-r--r-- | hw/serial.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/serial.c b/hw/serial.c index 78e219df5c..5adbfafde5 100644 --- a/hw/serial.c +++ b/hw/serial.c @@ -692,6 +692,12 @@ void serial_init_core(SerialState *s) serial_event, s); } +void serial_exit_core(SerialState *s) +{ + qemu_chr_add_handlers(s->chr, NULL, NULL, NULL, NULL); + qemu_unregister_reset(serial_reset, s); +} + /* Change the main reference oscillator frequency. */ void serial_set_frequency(SerialState *s, uint32_t frequency) { |