Received: from eggs.gnu.org ([2001:4830:134:3::10]:42258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZX0yd-0003n8-9Q for qemu-devel@nongnu.org; Wed, 02 Sep 2015 01:52:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZX0yc-0004Mu-Hg for qemu-devel@nongnu.org; Wed, 02 Sep 2015 01:52:55 -0400 Received: from mail-qg0-x22e.google.com ([2607:f8b0:400d:c04::22e]:35514) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZX0yc-0004Ml-Bv for qemu-devel@nongnu.org; Wed, 02 Sep 2015 01:52:54 -0400 Received: by qgt47 with SMTP id 47so11868695qgt.2 for ; Tue, 01 Sep 2015 22:52:54 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Tue, 1 Sep 2015 22:51:56 -0700 Message-Id: <1441173123-25540-14-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 13/20] target-sparc: Add npc 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-sparc/cpu.h | 1 + target-sparc/translate.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h index 0522b65..40b6625 100644 --- a/target-sparc/cpu.h +++ b/target-sparc/cpu.h @@ -236,6 +236,7 @@ typedef struct trap_state { uint32_t tt; } trap_state; #endif +#define TARGET_INSN_START_EXTRA_WORDS 1 typedef struct sparc_def_t { const char *name; diff --git a/target-sparc/translate.c b/target-sparc/translate.c index b1e533f..8f7bfb5 100644 --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -5266,7 +5266,7 @@ static inline void gen_intermediate_code_internal(SPARCCPU *cpu, tcg_ctx.gen_opc_icount[lj] = num_insns; } } - tcg_gen_insn_start(dc->pc); + tcg_gen_insn_start(dc->pc, dc->npc); if (num_insns + 1 == max_insns && (tb->cflags & CF_LAST_IO)) { gen_io_start(); -- 2.4.3