Received: from eggs.gnu.org ([2001:4830:134:3::10]:42181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZX0yX-0003bM-Gq for qemu-devel@nongnu.org; Wed, 02 Sep 2015 01:52:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZX0yW-0004L4-Op for qemu-devel@nongnu.org; Wed, 02 Sep 2015 01:52:49 -0400 Received: from mail-qg0-x231.google.com ([2607:f8b0:400d:c04::231]:35510) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZX0yW-0004Ku-LL for qemu-devel@nongnu.org; Wed, 02 Sep 2015 01:52:48 -0400 Received: by qgt47 with SMTP id 47so11868066qgt.2 for ; Tue, 01 Sep 2015 22:52:48 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Tue, 1 Sep 2015 22:51:51 -0700 Message-Id: <1441173123-25540-9-git-send-email-rth@twiddle.net> In-Reply-To: <1441173123-25540-1-git-send-email-rth@twiddle.net> References: <1441173123-25540-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH 08/20] target-sh4: Add flags state to insn_start List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: dl.soluz@gmx.net, atar4qemu@gmail.com, aurelien@aurel32.net Signed-off-by: Richard Henderson --- target-sh4/cpu.h | 1 + target-sh4/translate.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/target-sh4/cpu.h b/target-sh4/cpu.h index 34bb3d7..4fc7b1d 100644 --- a/target-sh4/cpu.h +++ b/target-sh4/cpu.h @@ -122,6 +122,7 @@ typedef struct tlb_t { #define ITLB_SIZE 4 #define NB_MMU_MODES 2 +#define TARGET_INSN_START_EXTRA_WORDS 1 enum sh_features { SH_FEATURE_SH4A = 1, diff --git a/target-sh4/translate.c b/target-sh4/translate.c index 645e9d4..740bf66 100644 --- a/target-sh4/translate.c +++ b/target-sh4/translate.c @@ -1896,7 +1896,7 @@ gen_intermediate_code_internal(SuperHCPU *cpu, TranslationBlock *tb, tcg_ctx.gen_opc_instr_start[ii] = 1; tcg_ctx.gen_opc_icount[ii] = num_insns; } - tcg_gen_insn_start(ctx.pc); + tcg_gen_insn_start(ctx.pc, ctx.flags); if (num_insns + 1 == max_insns && (tb->cflags & CF_LAST_IO)) { gen_io_start(); -- 2.4.3