Commit 0f4c64157fb50cb86535d62779ca1b05f323f77a
1 parent
90cb9493
kqemu info
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1531 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
16 additions
and
0 deletions
monitor.c
... | ... | @@ -885,6 +885,20 @@ static void mem_info(void) |
885 | 885 | } |
886 | 886 | #endif |
887 | 887 | |
888 | +static void do_info_kqemu(void) | |
889 | +{ | |
890 | +#ifdef USE_KQEMU | |
891 | + int val; | |
892 | + val = 0; | |
893 | + if (cpu_single_env) | |
894 | + val = cpu_single_env->kqemu_enabled; | |
895 | + term_printf("kqemu is %s\n", val ? "enabled" : "disabled"); | |
896 | +#else | |
897 | + term_printf("kqemu support is not compiled\n"); | |
898 | +#endif | |
899 | +} | |
900 | + | |
901 | + | |
888 | 902 | static term_cmd_t term_cmds[] = { |
889 | 903 | { "help|?", "s?", do_help, |
890 | 904 | "[cmd]", "show the help" }, |
... | ... | @@ -959,6 +973,8 @@ static term_cmd_t info_cmds[] = { |
959 | 973 | #endif |
960 | 974 | { "jit", "", do_info_jit, |
961 | 975 | "", "show dynamic compiler info", }, |
976 | + { "kqemu", "", do_info_kqemu, | |
977 | + "", "show kqemu information", }, | |
962 | 978 | { NULL, NULL, }, |
963 | 979 | }; |
964 | 980 | ... | ... |