diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-01-27 23:46:43 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-01-27 23:46:43 +0000 |
commit | e5b0bc445ed7edb1738aabb982a387ee38da1655 (patch) | |
tree | 1e16d2ed3df380c3cc664d4a5071d5695ad993f6 /hw/slavio_serial.c | |
parent | dff5efc848f5fe3fd8a9a67129a5234fe46ec3bb (diff) |
Rearrange char event handlers to fix CHR_EVENT_RESET.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2361 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/slavio_serial.c')
-rw-r--r-- | hw/slavio_serial.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/slavio_serial.c b/hw/slavio_serial.c index 928ff4c917..e72bb70e05 100644 --- a/hw/slavio_serial.c +++ b/hw/slavio_serial.c @@ -565,8 +565,8 @@ SerialState *slavio_serial_init(int base, int irq, CharDriverState *chr1, CharDr s->chn[i].chn = 1 - i; s->chn[i].type = ser; if (s->chn[i].chr) { - qemu_chr_add_read_handler(s->chn[i].chr, serial_can_receive, serial_receive1, &s->chn[i]); - qemu_chr_add_event_handler(s->chn[i].chr, serial_event); + qemu_chr_add_handlers(s->chn[i].chr, serial_can_receive, + serial_receive1, serial_event, &s->chn[i]); } } s->chn[0].otherchn = &s->chn[1]; |