aboutsummaryrefslogtreecommitdiff
path: root/hw/sh7750.c
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-01-27 23:46:43 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-01-27 23:46:43 +0000
commite5b0bc445ed7edb1738aabb982a387ee38da1655 (patch)
tree1e16d2ed3df380c3cc664d4a5071d5695ad993f6 /hw/sh7750.c
parentdff5efc848f5fe3fd8a9a67129a5234fe46ec3bb (diff)
downloadqemu-e5b0bc445ed7edb1738aabb982a387ee38da1655.zip
qemu-e5b0bc445ed7edb1738aabb982a387ee38da1655.tar.gz
qemu-e5b0bc445ed7edb1738aabb982a387ee38da1655.tar.bz2
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/sh7750.c')
-rw-r--r--hw/sh7750.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/hw/sh7750.c b/hw/sh7750.c
index 21f9bc0..164ce71 100644
--- a/hw/sh7750.c
+++ b/hw/sh7750.c
@@ -299,9 +299,8 @@ static void init_serial1(SH7750State * s, int serial_nb)
}
s->serial1 = chr;
- qemu_chr_add_read_handler(chr, serial1_can_receive,
- serial1_receive, s);
- qemu_chr_add_event_handler(chr, serial1_event);
+ qemu_chr_add_handlers(chr, serial1_can_receive,
+ serial1_receive, serial1_event, s);
}
/**********************************************************************
@@ -415,9 +414,8 @@ static void init_serial2(SH7750State * s, int serial_nb)
}
s->serial2 = chr;
- qemu_chr_add_read_handler(chr, serial2_can_receive,
- serial2_receive, s);
- qemu_chr_add_event_handler(chr, serial2_event);
+ qemu_chr_add_handlers(chr, serial2_can_receive,
+ serial2_receive, serial1_event, s);
}
static void init_serial_ports(SH7750State * s)