aboutsummaryrefslogtreecommitdiff
path: root/hw/pl011.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/pl011.c
parentdff5efc848f5fe3fd8a9a67129a5234fe46ec3bb (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/pl011.c')
-rw-r--r--hw/pl011.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/pl011.c b/hw/pl011.c
index 657f03bbe8..fb7ab7b53d 100644
--- a/hw/pl011.c
+++ b/hw/pl011.c
@@ -243,8 +243,8 @@ void pl011_init(uint32_t base, void *pic, int irq,
s->cr = 0x300;
s->flags = 0x90;
if (chr){
- qemu_chr_add_read_handler(chr, pl011_can_recieve, pl011_recieve, s);
- qemu_chr_add_event_handler(chr, pl011_event);
+ qemu_chr_add_handlers(chr, pl011_can_recieve, pl011_recieve,
+ pl011_event, s);
}
/* ??? Save/restore. */
}