From patchwork Mon Oct 29 09:14:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Voevodin X-Patchwork-Id: 194925 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id A9EE12C009A for ; Mon, 29 Oct 2012 20:25:39 +1100 (EST) Received: from localhost ([::1]:39690 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSlbF-0001Nq-Qo for incoming@patchwork.ozlabs.org; Mon, 29 Oct 2012 05:25:37 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSlb3-0001NH-Tc for qemu-devel@nongnu.org; Mon, 29 Oct 2012 05:25:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TSlb1-0005We-Gw for qemu-devel@nongnu.org; Mon, 29 Oct 2012 05:25:25 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:9392) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSlQn-0002js-FE for qemu-devel@nongnu.org; Mon, 29 Oct 2012 05:14:49 -0400 Received: from eusync4.samsung.com (mailout3.w1.samsung.com [210.118.77.13]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MCN00EOVDPFSI50@mailout3.w1.samsung.com> for qemu-devel@nongnu.org; Mon, 29 Oct 2012 09:15:15 +0000 (GMT) Received: from evvoevodinPC.rnd.samsung.ru ([106.109.8.9]) by eusync4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MCN004OKDODVI40@eusync4.samsung.com> for qemu-devel@nongnu.org; Mon, 29 Oct 2012 09:14:48 +0000 (GMT) From: Evgeny Voevodin To: qemu-devel@nongnu.org Date: Mon, 29 Oct 2012 13:14:35 +0400 Message-id: <1351502075-12356-7-git-send-email-e.voevodin@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1351502075-12356-1-git-send-email-e.voevodin@samsung.com> References: <1351502075-12356-1-git-send-email-e.voevodin@samsung.com> X-TM-AS-MML: No X-detected-operating-system: by eggs.gnu.org: Solaris 10 (1203?) X-Received-From: 210.118.77.13 Cc: Evgeny , blauwirbel@gmail.com, kyungmin.park@samsung.com, edgar.iglesias@gmail.com, aurelien@aurel32.net, rth@twiddle.net Subject: [Qemu-devel] [PATCH v3 6/6] TCG: Remove unused global variables X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Evgeny Signed-off-by: Evgeny Voevodin --- tcg/tcg.c | 4 ---- tcg/tcg.h | 4 ---- translate-all.c | 3 --- 3 files changed, 11 deletions(-) diff --git a/tcg/tcg.c b/tcg/tcg.c index f332463..53bf109 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -96,10 +96,6 @@ const size_t tcg_op_defs_max = ARRAY_SIZE(tcg_op_defs); static TCGRegSet tcg_target_available_regs[2]; static TCGRegSet tcg_target_call_clobber_regs; -/* XXX: move that inside the context */ -uint16_t *gen_opc_ptr; -TCGArg *gen_opparam_ptr; - static inline void tcg_out8(TCGContext *s, uint8_t v) { *s->code_ptr++ = v; diff --git a/tcg/tcg.h b/tcg/tcg.h index 43b4317..b1f4e49 100644 --- a/tcg/tcg.h +++ b/tcg/tcg.h @@ -431,10 +431,6 @@ struct TCGContext { }; extern TCGContext tcg_ctx; -extern uint16_t *gen_opc_ptr; -extern TCGArg *gen_opparam_ptr; -extern uint16_t gen_opc_buf[]; -extern TCGArg gen_opparam_buf[]; /* pool based memory allocation */ diff --git a/translate-all.c b/translate-all.c index 5bd2d37..d9c2e57 100644 --- a/translate-all.c +++ b/translate-all.c @@ -33,9 +33,6 @@ /* code generation context */ TCGContext tcg_ctx; -uint16_t gen_opc_buf[OPC_BUF_SIZE]; -TCGArg gen_opparam_buf[OPPARAM_BUF_SIZE]; - target_ulong gen_opc_pc[OPC_BUF_SIZE]; uint16_t gen_opc_icount[OPC_BUF_SIZE]; uint8_t gen_opc_instr_start[OPC_BUF_SIZE];