aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-18 14:08:04 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-18 14:08:04 +0000
commitceecf1d158d324c61a7ec1ba5de57dbc8a0f8373 (patch)
treebb58577711ef3fedae6ebbe731ac4da7f2d85bde /console.c
parentcuda: fix crash on Windows (diff)
downloadqemu-kvm-ceecf1d158d324c61a7ec1ba5de57dbc8a0f8373.tar.gz
qemu-kvm-ceecf1d158d324c61a7ec1ba5de57dbc8a0f8373.tar.bz2
qemu-kvm-ceecf1d158d324c61a7ec1ba5de57dbc8a0f8373.zip
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 <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6365 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'console.c')
-rw-r--r--console.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/console.c b/console.c
index b452bca10..6f0f1afad 100644
--- a/console.c
+++ b/console.c
@@ -1357,6 +1357,8 @@ static void text_console_do_init(CharDriverState *chr, DisplayState *ds, const c
text_console_resize(s);
qemu_chr_reset(chr);
+ if (chr->init)
+ chr->init(chr);
}
CharDriverState *text_console_init(const char *p)