X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=monitor.c;h=297c0a42d2ab73d94efcad0730d69ae1d914ac63;hb=6688bc6d04d1249643eb1494794aa649194c9fbb;hp=4e6f6fabac6edf6694fe0cc9b631c0ae697c53f0;hpb=d24b15a8d8f59c79d9183e8d884867a64cb003bb;p=qemu diff --git a/monitor.c b/monitor.c index 4e6f6fa..297c0a4 100644 --- a/monitor.c +++ b/monitor.c @@ -885,6 +885,20 @@ static void mem_info(void) } #endif +static void do_info_kqemu(void) +{ +#ifdef USE_KQEMU + int val; + val = 0; + if (cpu_single_env) + val = cpu_single_env->kqemu_enabled; + term_printf("kqemu is %s\n", val ? "enabled" : "disabled"); +#else + term_printf("kqemu support is not compiled\n"); +#endif +} + + static term_cmd_t term_cmds[] = { { "help|?", "s?", do_help, "[cmd]", "show the help" }, @@ -959,6 +973,8 @@ static term_cmd_t info_cmds[] = { #endif { "jit", "", do_info_jit, "", "show dynamic compiler info", }, + { "kqemu", "", do_info_kqemu, + "", "show kqemu information", }, { NULL, NULL, }, };