Fix GT64120 mapping with REDBOOT, by Aurelien Jarno.
[qemu] / monitor.c
index 6cb1c38..893040a 100644 (file)
--- a/monitor.c
+++ b/monitor.c
@@ -2455,8 +2455,7 @@ void monitor_init(CharDriverState *hd, int show_banner)
     monitor_hd = hd;
     hide_banner = !show_banner;
 
-    qemu_chr_add_read_handler(hd, term_can_read, term_read, NULL);
-    qemu_chr_add_event_handler(hd, term_event);
+    qemu_chr_add_handlers(hd, term_can_read, term_read, term_event, NULL);
 }
 
 /* XXX: use threads ? */