[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v11 02/29] cpu-exec: Avoid global variables in i
From: |
Emilio G. Cota |
Subject: |
Re: [Qemu-devel] [PATCH v11 02/29] cpu-exec: Avoid global variables in icount-related functions |
Date: |
Thu, 29 Jun 2017 18:56:16 -0400 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
On Wed, Jun 28, 2017 at 15:24:44 +0300, Lluís Vilanova wrote:
> Signed-off-by: Lluís Vilanova <address@hidden>
> ---
(snip)
> @@ -62,14 +62,14 @@ static void gen_tb_end(TranslationBlock *tb, int
> num_insns)
> static inline void gen_io_start(void)
> {
> TCGv_i32 tmp = tcg_const_i32(1);
> - tcg_gen_st_i32(tmp, cpu_env, -ENV_OFFSET + offsetof(CPUState,
> can_do_io));
> + tcg_gen_st_i32(tmp, tcg_ctx.tcg_env, -ENV_OFFSET + offsetof(CPUState,
> can_do_io));
> tcg_temp_free_i32(tmp);
> }
>
> static inline void gen_io_end(void)
> {
> TCGv_i32 tmp = tcg_const_i32(0);
> - tcg_gen_st_i32(tmp, cpu_env, -ENV_OFFSET + offsetof(CPUState,
> can_do_io));
> + tcg_gen_st_i32(tmp, tcg_ctx.tcg_env, -ENV_OFFSET + offsetof(CPUState,
> can_do_io));
> tcg_temp_free_i32(tmp);
If you break these long lines as in this patch, you'll avoid a merge
conflict with it (it's been queued):
[PATCH v2 2/2] gen-icount: use tcg_ctx.tcg_env instead of cpu_env
https://patchwork.kernel.org/patch/9793381/
Or just pick up that patch verbatim.
E.
- [Qemu-devel] [PATCH v11 00/29] translate: [tcg] Generic translation framework, Lluís Vilanova, 2017/06/28
- [Qemu-devel] [PATCH v11 01/29] Pass generic CPUState to gen_intermediate_code(), Lluís Vilanova, 2017/06/28
- [Qemu-devel] [PATCH v11 02/29] cpu-exec: Avoid global variables in icount-related functions, Lluís Vilanova, 2017/06/28
- Re: [Qemu-devel] [PATCH v11 02/29] cpu-exec: Avoid global variables in icount-related functions,
Emilio G. Cota <=
- [Qemu-devel] [PATCH v11 03/29] target: [tcg] Use a generic enum for DISAS_ values, Lluís Vilanova, 2017/06/28
- [Qemu-devel] [PATCH v11 04/29] target: [tcg] Add generic translation framework, Lluís Vilanova, 2017/06/28
- [Qemu-devel] [PATCH v11 05/29] target/i386: [tcg] Port to DisasContextBase, Lluís Vilanova, 2017/06/28
- [Qemu-devel] [PATCH v11 06/29] target/i386: [tcg] Refactor init_disas_context, Lluís Vilanova, 2017/06/28
- [Qemu-devel] [PATCH v11 07/29] target/i386: [tcg] Refactor init_globals, Lluís Vilanova, 2017/06/28