diff options
author | munkyu.im <munkyu.im@samsung.com> | 2012-09-21 16:47:26 +0900 |
---|---|---|
committer | munkyu.im <munkyu.im@samsung.com> | 2012-09-21 16:47:26 +0900 |
commit | d02cfe66652aacbaf615832e73a739a1b3ddd9ce (patch) | |
tree | 182a926972fda82c6774b80db262a5f6fb24a88c | |
parent | 644810e189630af8ef9dd6657a1deeee1669df9a (diff) | |
download | qemu-d02cfe66652aacbaf615832e73a739a1b3ddd9ce.tar.gz qemu-d02cfe66652aacbaf615832e73a739a1b3ddd9ce.tar.bz2 qemu-d02cfe66652aacbaf615832e73a739a1b3ddd9ce.zip |
device: fix hanging devices when boot emulator
The problem was that display initialzing routine was wrong due to
using wrong definitions
Singed-off-by: Munkyu Im <munkyu.im@samsung.com>
-rw-r--r-- | vl.c | 42 |
1 files changed, 27 insertions, 15 deletions
@@ -3611,16 +3611,15 @@ fprintf(stdout, "kernel command : %s\n", kernel_cmdline); if (using_spice) display_remote++; if (display_type == DT_DEFAULT && !display_remote) { -#if defined(CONFIG_MARU) - /* maru display */ - display_type = DT_MARU; -#elif defined(CONFIG_SDL) || defined(CONFIG_COCOA) +#if defined(CONFIG_SDL) || defined(CONFIG_COCOA) display_type = DT_SDL; #elif defined(CONFIG_VNC) vnc_display = "localhost:0,to=99"; show_vnc_port = 1; +#elif defined(CONFIG_MARU) && defined (__APPLE__) + display_type = DT_MARU; #else - display_type = DT_NONE; + display_type = DT_NONE; #endif } @@ -3636,25 +3635,38 @@ fprintf(stdout, "kernel command : %s\n", kernel_cmdline); #endif #if defined(CONFIG_SDL) case DT_SDL: - sdl_display_init(ds, full_screen, no_frame); +#if defined(CONFIG_MARU) + /* use tizen qemu sdl */ + maru_display_init(ds); + + if (skin_disabled == 1) { + //do not start skin client process + set_emul_skin_enable(0); + } else { + set_emul_skin_enable(1); + } +#else + sdl_display_init(ds, full_screen, no_frame); +#endif break; #elif defined(CONFIG_COCOA) case DT_SDL: cocoa_display_init(ds, full_screen); break; #endif -#if defined(CONFIG_MARU) +#if defined(CONFIG_MARU) && defined(__APPLE__) case DT_MARU: - maru_display_init(ds); - if (skin_disabled == 1) { - set_emul_skin_enable(0); - } else { - set_emul_skin_enable(1); - } - break; + maru_display_init(ds); + if (skin_disabled == 1) { + //do not start skin client process + set_emul_skin_enable(0); + } else { + set_emul_skin_enable(1); + } + break; #endif default: - break; + break; } /* must be after terminal init, SDL library changes signal handlers */ |