From fdefe51c288866b98e62663fa18c8af1d66bf5f6 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Mon, 24 Sep 2012 14:55:47 -0700 Subject: Emit debug_insn for CPU_LOG_TB_OP_OPT as well. For all targets that currently call tcg_gen_debug_insn_start, add CPU_LOG_TB_OP_OPT to the condition that gates it. This is useful for comparing optimization dumps, when the pre-optimization dump is merely noise. Signed-off-by: Richard Henderson Signed-off-by: Aurelien Jarno --- target-openrisc/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target-openrisc') diff --git a/target-openrisc/translate.c b/target-openrisc/translate.c index 325ba09cb5..e2cad3ad42 100644 --- a/target-openrisc/translate.c +++ b/target-openrisc/translate.c @@ -1715,7 +1715,7 @@ static inline void gen_intermediate_code_internal(OpenRISCCPU *cpu, gen_opc_icount[k] = num_insns; } - if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP))) { + if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP | CPU_LOG_TB_OP_OPT))) { tcg_gen_debug_insn_start(dc->pc); } -- cgit v1.2.3