Skip to content

Commit

Permalink
target-arm: Add condexec state to insn_start
Browse files Browse the repository at this point in the history
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
  • Loading branch information
rth7680 committed Oct 7, 2015
1 parent 9aef40e commit 52e971d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions target-arm/cpu.h
Expand Up @@ -95,6 +95,7 @@
struct arm_boot_info;

#define NB_MMU_MODES 7
#define TARGET_INSN_START_EXTRA_WORDS 1

/* We currently assume float and double are IEEE single and double
precision respectively.
Expand Down
2 changes: 1 addition & 1 deletion target-arm/translate-a64.c
Expand Up @@ -11090,7 +11090,7 @@ void gen_intermediate_code_internal_a64(ARMCPU *cpu,
tcg_ctx.gen_opc_instr_start[lj] = 1;
tcg_ctx.gen_opc_icount[lj] = num_insns;
}
tcg_gen_insn_start(dc->pc);
tcg_gen_insn_start(dc->pc, 0);
num_insns++;

if (unlikely(!QTAILQ_EMPTY(&cs->breakpoints))) {
Expand Down
3 changes: 2 additions & 1 deletion target-arm/translate.c
Expand Up @@ -11317,7 +11317,8 @@ static inline void gen_intermediate_code_internal(ARMCPU *cpu,
tcg_ctx.gen_opc_instr_start[lj] = 1;
tcg_ctx.gen_opc_icount[lj] = num_insns;
}
tcg_gen_insn_start(dc->pc);
tcg_gen_insn_start(dc->pc,
(dc->condexec_cond << 4) | (dc->condexec_mask >> 1));
num_insns++;

#ifdef CONFIG_USER_ONLY
Expand Down

0 comments on commit 52e971d

Please sign in to comment.