[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH 06/10] monitor: disable info jit if !TCG
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [RFC PATCH 06/10] monitor: disable info jit if !TCG |
Date: |
Mon, 17 Sep 2012 18:00:45 +0200 |
Signed-off-by: Paolo Bonzini <address@hidden>
---
exec.c | 5 +++++
monitor.c | 4 ++++
2 file modificati, 9 inserzioni(+)
diff --git a/exec.c b/exec.c
index 3e77de2..f7c1099 100644
--- a/exec.c
+++ b/exec.c
@@ -4157,6 +4157,11 @@ void dump_exec_info(FILE *f, fprintf_function
cpu_fprintf)
int direct_jmp_count, direct_jmp2_count, cross_page;
TranslationBlock *tb;
+ if (!tcg_enabled()) {
+ cpu_fprintf(f, "TCG not enabled\n");
+ return;
+ }
+
target_code_size = 0;
max_target_code_size = 0;
cross_page = 0;
diff --git a/monitor.c b/monitor.c
index 67064e2..f70201b 100644
--- a/monitor.c
+++ b/monitor.c
@@ -906,10 +906,12 @@ static void do_info_registers(Monitor *mon)
#endif
}
+#ifdef CONFIG_TCG
static void do_info_jit(Monitor *mon)
{
dump_exec_info((FILE *)mon, monitor_fprintf);
}
+#endif
static void do_info_history(Monitor *mon)
{
@@ -2558,6 +2560,7 @@ static mon_cmd_t info_cmds[] = {
.help = "show memory tree",
.mhandler.info = do_info_mtree,
},
+#if defined(CONFIG_TCG)
{
.name = "jit",
.args_type = "",
@@ -2565,6 +2568,7 @@ static mon_cmd_t info_cmds[] = {
.help = "show dynamic compiler info",
.mhandler.info = do_info_jit,
},
+#endif
{
.name = "kvm",
.args_type = "",
--
1.7.12
[Qemu-devel] [RFC PATCH 08/10] configure: add --disable-tcg configure option, Paolo Bonzini, 2012/09/17
[Qemu-devel] [RFC PATCH 05/10] exec: small adjustments for TCG separation, Paolo Bonzini, 2012/09/17
[Qemu-devel] [RFC PATCH 06/10] monitor: disable info jit if !TCG,
Paolo Bonzini <=
[Qemu-devel] [RFC PATCH 09/10] i386: move TCG functions out of helper.o, non-TCG functions to cpu.o, Paolo Bonzini, 2012/09/17
[Qemu-devel] [RFC PATCH 07/10] configure: emit summary at the very end, Paolo Bonzini, 2012/09/17
[Qemu-devel] [RFC PATCH 03/10] vl: implement tcg_enabled() and tcg_available() as for other accelerators, Paolo Bonzini, 2012/09/17
[Qemu-devel] [RFC PATCH 10/10] build: do not build TCG files if TCG is disabled, Paolo Bonzini, 2012/09/17
[Qemu-devel] [RFC PATCH 04/10] tcg: change cpu_restore_state to return void, Paolo Bonzini, 2012/09/17