From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaH4O-0007vZ-Jp for qemu-devel@nongnu.org; Fri, 11 Sep 2015 01:40:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZaH4J-0005YR-Ko for qemu-devel@nongnu.org; Fri, 11 Sep 2015 01:40:20 -0400 Received: from mail-pa0-x22f.google.com ([2607:f8b0:400e:c03::22f]:34325) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaH4J-0005YE-65 for qemu-devel@nongnu.org; Fri, 11 Sep 2015 01:40:15 -0400 Received: by padhy16 with SMTP id hy16so64736669pad.1 for ; Thu, 10 Sep 2015 22:40:14 -0700 (PDT) From: Peter Crosthwaite Date: Thu, 10 Sep 2015 22:39:35 -0700 Message-Id: In-Reply-To: References: Subject: [Qemu-devel] [PATCH v1 05/15] tcg: Move tcg_tb_ptr to -common List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, pbonzini@redhat.com, rth@twiddle.net This requires global visibility to common code. Move to tcg-common. Cc: Stefan Weil Signed-off-by: Peter Crosthwaite --- tcg/tcg-common.c | 2 ++ tci.c | 6 ------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/tcg/tcg-common.c b/tcg/tcg-common.c index 6a68c42..bcbd073 100644 --- a/tcg/tcg-common.c +++ b/tcg/tcg-common.c @@ -24,6 +24,8 @@ #include "tcg/tcg.h" +uintptr_t tci_tb_ptr; + 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) -- 1.9.1