From: Richard Henderson Date: Sun, 17 Apr 2022 18:29:42 +0000 (-0700) Subject: target/hexagon: Remove qemu_set_log in hexagon_translate_init X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=eecb0c4e1125c751ded392456b43a036e8efe1ab;p=qemu.git target/hexagon: Remove qemu_set_log in hexagon_translate_init This code appears to be trying to make sure there is a logfile. But that's already true -- the logfile will either be set by -D, or will be stderr. In either case, not appropriate here. Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson Message-Id: <20220417183019.755276-3-richard.henderson@linaro.org> --- diff --git a/target/hexagon/translate.c b/target/hexagon/translate.c index b6f541ecb2..98f1452cad 100644 --- a/target/hexagon/translate.c +++ b/target/hexagon/translate.c @@ -874,12 +874,6 @@ void hexagon_translate_init(void) opcode_init(); - if (HEX_DEBUG) { - if (!qemu_logfile) { - qemu_set_log(qemu_loglevel); - } - } - for (i = 0; i < TOTAL_PER_THREAD_REGS; i++) { hex_gpr[i] = tcg_global_mem_new(cpu_env, offsetof(CPUHexagonState, gpr[i]),