target-i386: Add cc_op state to insn_start

Backports commit 2066d09516ba34d0d180fdea451436d9babb3308 from qemu
This commit is contained in:
Richard Henderson 2018-02-16 00:37:39 -05:00 committed by Lioncash
parent 500e116581
commit f05c35c49c
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7
2 changed files with 2 additions and 1 deletions

View file

@ -795,6 +795,7 @@ typedef struct {
#define MAX_GP_COUNTERS (MSR_IA32_PERF_STATUS - MSR_P6_EVNTSEL0)
#define NB_MMU_MODES 3
#define TARGET_INSN_START_EXTRA_WORDS 1
#define NB_OPMASK_REGS 8

View file

@ -8702,7 +8702,7 @@ static inline void gen_intermediate_code_internal(uint8_t *gen_opc_cc_op,
tcg_ctx->gen_opc_instr_start[lj] = 1;
// tcg_ctx->gen_opc_icount[lj] = num_insns;
}
tcg_gen_insn_start(tcg_ctx, pc_start);
tcg_gen_insn_start(tcg_ctx, pc_start, dc->cc_op);
num_insns++;
//if (num_insns == max_insns && (tb->cflags & CF_LAST_IO)) {