From ceecf1d158d324c61a7ec1ba5de57dbc8a0f8373 Mon Sep 17 00:00:00 2001 From: aurel32 Date: Sun, 18 Jan 2009 14:08:04 +0000 Subject: add an init function parameter to qemu_chr_open() And use it for the malta emulation. Fix segfault introduced in revision 6352. Signed-off-by: Aurelien Jarno git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6365 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/omap2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/omap2.c') diff --git a/hw/omap2.c b/hw/omap2.c index b9f7706..20b3811 100644 --- a/hw/omap2.c +++ b/hw/omap2.c @@ -2161,7 +2161,7 @@ static struct omap_sti_s *omap_sti_init(struct omap_target_agent_s *ta, s->irq = irq; omap_sti_reset(s); - s->chr = chr ?: qemu_chr_open("null", "null"); + s->chr = chr ?: qemu_chr_open("null", "null", NULL); iomemtype = l4_register_io_memory(0, omap_sti_readfn, omap_sti_writefn, s); -- cgit v1.1