diff options
author | Richard Henderson <rth@twiddle.net> | 2015-08-29 12:59:29 -0700 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2015-10-07 20:36:27 +1100 |
commit | 667b8e29c5b1d8c5b4e6ad5f780ca60914eb6e96 (patch) | |
tree | 0d1aa7775d9cb83ce858394f2e56114ccdc23f94 /target-i386 | |
parent | 765b842adec4c5a359e69ca08785553599f71496 (diff) | |
download | qemu-667b8e29c5b1d8c5b4e6ad5f780ca60914eb6e96.zip qemu-667b8e29c5b1d8c5b4e6ad5f780ca60914eb6e96.tar.gz qemu-667b8e29c5b1d8c5b4e6ad5f780ca60914eb6e96.tar.bz2 |
target-*: Unconditionally emit tcg_gen_insn_start
While we're at it, emit the opcode adjacent to where we currently
record data for search_pc. This puts gen_io_start et al on the
"correct" side of the marker.
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-i386')
-rw-r--r-- | target-i386/translate.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/target-i386/translate.c b/target-i386/translate.c index c18f82b..82d32e1 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -4401,9 +4401,6 @@ static target_ulong disas_insn(CPUX86State *env, DisasContext *s, target_ulong next_eip, tval; int rex_w, rex_r; - if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP | CPU_LOG_TB_OP_OPT))) { - tcg_gen_insn_start(pc_start); - } s->pc = pc_start; prefixes = 0; s->override = -1; @@ -7962,6 +7959,8 @@ static inline void gen_intermediate_code_internal(X86CPU *cpu, tcg_ctx.gen_opc_instr_start[lj] = 1; tcg_ctx.gen_opc_icount[lj] = num_insns; } + tcg_gen_insn_start(pc_ptr); + if (num_insns + 1 == max_insns && (tb->cflags & CF_LAST_IO)) gen_io_start(); |