diff --git a/qemu/target-arm/translate.c b/qemu/target-arm/translate.c index 861bf3c7..691d4047 100644 --- a/qemu/target-arm/translate.c +++ b/qemu/target-arm/translate.c @@ -11380,8 +11380,7 @@ static bool insn_crosses_page(CPUARMState *env, DisasContext *s) return false; } -/* generate intermediate code in gen_opc_buf and gen_opparam_buf for - basic block 'tb'. */ +/* generate intermediate code for basic block 'tb'. */ void gen_intermediate_code(CPUARMState *env, TranslationBlock *tb) { ARMCPU *cpu = arm_env_get_cpu(env); diff --git a/qemu/target-i386/translate.c b/qemu/target-i386/translate.c index d4b447ff..369ff6c0 100644 --- a/qemu/target-i386/translate.c +++ b/qemu/target-i386/translate.c @@ -8577,8 +8577,7 @@ void tcg_x86_init(struct uc_struct *uc) } } -/* generate intermediate code in gen_opc_buf and gen_opparam_buf for - basic block 'tb'. */ +/* generate intermediate code for basic block 'tb'. */ void gen_intermediate_code(CPUX86State *env, TranslationBlock *tb) { X86CPU *cpu = x86_env_get_cpu(env); diff --git a/qemu/tcg/tcg.c b/qemu/tcg/tcg.c index 727ebaa7..9990a016 100644 --- a/qemu/tcg/tcg.c +++ b/qemu/tcg/tcg.c @@ -1637,8 +1637,7 @@ static void tcg_liveness_analysis(TCGContext *s) /* dummy liveness analysis */ static void tcg_liveness_analysis(TCGContext *s) { - int nb_ops; - nb_ops = s->gen_opc_ptr - s->gen_opc_buf; + int nb_ops = s->gen_next_op_idx; s->op_dead_args = tcg_malloc(s, nb_ops * sizeof(uint16_t)); memset(s->op_dead_args, 0, nb_ops * sizeof(uint16_t));