[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v14 08/34] tcg: Add generic translation framewor
From: |
Emilio G. Cota |
Subject: |
Re: [Qemu-devel] [PATCH v14 08/34] tcg: Add generic translation framework |
Date: |
Fri, 21 Jul 2017 19:38:18 -0400 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
On Fri, Jul 14, 2017 at 23:42:17 -1000, Richard Henderson wrote:
> From: Lluís Vilanova <address@hidden>
>
> Signed-off-by: Lluís Vilanova <address@hidden>
> Message-Id: <address@hidden>
> [rth: Moved max_insns adjustment from tb_start to init_disas_context.
> Removed pc_next return from translate_insn.
> Removed tcg_check_temp_count from generic loop.
> Moved gen_io_end to exactly match gen_io_start.
> Use qemu_log instead of error_report for temporary leaks.
> Moved TB size/icount assignments before disas_log.]
> Signed-off-by: Richard Henderson <address@hidden>
(snip)
> +void translator_loop_temp_check(DisasContextBase *db)
> +{
> + if (tcg_check_temp_count()) {
> + qemu_log("warning: TCG temporary leaks before "
> + TARGET_FMT_lx "\n", db->pc_next);
> + }
> +}
I dislike that we have target code calling tcg_clear_temp_count()
and then calling translator_loop_temp_check().
I suggest we either:
- Add an inline wrapping tcg_clear_temp_count(), calling it something
like translator_loop_clear_temp_count()
- Just add a comment to this function, e.g.
'/* pairs with tcg_clear_temp_count() */'
Ignoring that and the update needed to the docs that Lluis mentioned,
Reviewed-by: Emilio G. Cota <address@hidden>
E.
- Re: [Qemu-devel] [PATCH v14 04/34] target/arm: Use DISAS_NORETURN, (continued)
- [Qemu-devel] [PATCH v14 06/34] target/arm: Delay check for magic kernel page, Richard Henderson, 2017/07/15
- [Qemu-devel] [PATCH v14 07/34] target/arm: Set is_jmp properly after single-stepping, Richard Henderson, 2017/07/15
- [Qemu-devel] [PATCH v14 05/34] target: [tcg] Use a generic enum for DISAS_ values, Richard Henderson, 2017/07/15
- [Qemu-devel] [PATCH v14 08/34] tcg: Add generic translation framework, Richard Henderson, 2017/07/15
- [Qemu-devel] [PATCH v14 10/34] target/i386: [tcg] Port to init_disas_context, Richard Henderson, 2017/07/15
- [Qemu-devel] [PATCH v14 09/34] target/i386: [tcg] Port to DisasContextBase, Richard Henderson, 2017/07/15
- [Qemu-devel] [PATCH v14 12/34] target/i386: [tcg] Port to breakpoint_check, Richard Henderson, 2017/07/15
- [Qemu-devel] [PATCH v14 11/34] target/i386: [tcg] Port to insn_start, Richard Henderson, 2017/07/15
- [Qemu-devel] [PATCH v14 13/34] target/i386: [tcg] Port to translate_insn, Richard Henderson, 2017/07/15
- [Qemu-devel] [PATCH v14 14/34] target/i386: [tcg] Port to tb_stop, Richard Henderson, 2017/07/15
- [Qemu-devel] [PATCH v14 16/34] target/i386: [tcg] Port to generic translation framework, Richard Henderson, 2017/07/15
- [Qemu-devel] [PATCH v14 15/34] target/i386: [tcg] Port to disas_log, Richard Henderson, 2017/07/15
- [Qemu-devel] [PATCH v14 19/34] target/arm: [tcg, a64] Port to init_disas_context, Richard Henderson, 2017/07/15