diff options
author | Emilio G. Cota <cota@braap.org> | 2017-07-09 03:49:54 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-07-14 12:04:42 +0200 |
commit | d40d3da00c10f0169a26985ecb65033bff536f2c (patch) | |
tree | 4515110b83fddadc029af20db60e7760ff0c7025 /accel/tcg | |
parent | f940488feaca394ccc68e0595b4c3a9017f16e45 (diff) | |
download | qemu-d40d3da00c10f0169a26985ecb65033bff536f2c.zip qemu-d40d3da00c10f0169a26985ecb65033bff536f2c.tar.gz qemu-d40d3da00c10f0169a26985ecb65033bff536f2c.tar.bz2 |
translate-all: remove redundant !tcg_enabled check in dump_exec_info
This check is redundant because it is already performed by the only
caller of dump_exec_info -- the caller was updated by b7da97eef
("monitor: Check whether TCG is enabled before running the "info jit"
code").
Checking twice wouldn't necessarily be too bad, but here the check also
returns with tb_lock held. So we can either do the check before tb_lock is
acquired, or just get rid of it. Given that it is redundant, I am going
for the latter option.
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'accel/tcg')
-rw-r--r-- | accel/tcg/translate-all.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c index 0caf80d..4e1831c 100644 --- a/accel/tcg/translate-all.c +++ b/accel/tcg/translate-all.c @@ -1851,11 +1851,6 @@ void dump_exec_info(FILE *f, fprintf_function cpu_fprintf) tb_lock(); - if (!tcg_enabled()) { - cpu_fprintf(f, "TCG not enabled\n"); - return; - } - target_code_size = 0; max_target_code_size = 0; cross_page = 0; |