From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcBrA-0003WT-8F for qemu-devel@nongnu.org; Wed, 16 Sep 2015 08:30:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcBr8-0005ee-4D for qemu-devel@nongnu.org; Wed, 16 Sep 2015 08:30:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcBr7-0005eV-Uc for qemu-devel@nongnu.org; Wed, 16 Sep 2015 08:30:34 -0400 From: Paolo Bonzini Date: Wed, 16 Sep 2015 14:29:47 +0200 Message-Id: <1442406595-14296-17-git-send-email-pbonzini@redhat.com> In-Reply-To: <1442406595-14296-1-git-send-email-pbonzini@redhat.com> References: <1442406595-14296-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PULL 16/24] tcg: Move tci_tb_ptr to -common List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Stefan Weil , Peter Crosthwaite , Peter Crosthwaite From: Peter Crosthwaite This requires global visibility to common code. Move to tcg-common. Cc: Stefan Weil Signed-off-by: Peter Crosthwaite Message-Id: Signed-off-by: Paolo Bonzini --- tcg/tcg-common.c | 4 ++++ tci.c | 6 ------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/tcg/tcg-common.c b/tcg/tcg-common.c index 6a68c42..8fa4e13 100644 --- a/tcg/tcg-common.c +++ b/tcg/tcg-common.c @@ -24,6 +24,10 @@ #include "tcg/tcg.h" +#if defined(CONFIG_TCG_INTERPRETER) +uintptr_t tci_tb_ptr; +#endif + TCGOpDef tcg_op_defs[] = { #define DEF(s, oargs, iargs, cargs, flags) \ { #s, oargs, iargs, cargs, iargs + oargs + cargs, flags }, diff --git a/tci.c b/tci.c index 3d6d177..70eaab2 100644 --- a/tci.c +++ b/tci.c @@ -52,12 +52,6 @@ typedef uint64_t (*helper_function)(tcg_target_ulong, tcg_target_ulong, tcg_target_ulong); #endif -/* Targets which don't use GETPC also don't need tci_tb_ptr - which makes them a little faster. */ -#if defined(GETPC) -uintptr_t tci_tb_ptr; -#endif - static tcg_target_ulong tci_reg[TCG_TARGET_NB_REGS]; static tcg_target_ulong tci_read_reg(TCGReg index) -- 2.5.0