From patchwork Wed Oct 31 05:19:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Voevodin X-Patchwork-Id: 195737 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 B741D2C0081 for ; Wed, 31 Oct 2012 16:20:38 +1100 (EST) Received: from localhost ([::1]:43078 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTQjE-0007FU-H9 for incoming@patchwork.ozlabs.org; Wed, 31 Oct 2012 01:20:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTQip-0006wa-Sk for qemu-devel@nongnu.org; Wed, 31 Oct 2012 01:20:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTQio-0006ah-9x for qemu-devel@nongnu.org; Wed, 31 Oct 2012 01:20:11 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:34302) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTQio-0006aZ-4M for qemu-devel@nongnu.org; Wed, 31 Oct 2012 01:20:10 -0400 Received: from eusync4.samsung.com (mailout4.w1.samsung.com [210.118.77.14]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MCQ00KOES6HHV20@mailout4.w1.samsung.com> for qemu-devel@nongnu.org; Wed, 31 Oct 2012 05:20:41 +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 <0MCQ00H4XS59D560@eusync4.samsung.com> for qemu-devel@nongnu.org; Wed, 31 Oct 2012 05:20:09 +0000 (GMT) From: Evgeny Voevodin To: qemu-devel@nongnu.org Date: Wed, 31 Oct 2012 09:19:55 +0400 Message-id: <1351660795-24013-8-git-send-email-e.voevodin@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1351660795-24013-1-git-send-email-e.voevodin@samsung.com> References: <1351660795-24013-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.14 Cc: Evgeny , blauwirbel@gmail.com, kyungmin.park@samsung.com, edgar.iglesias@gmail.com, aurelien@aurel32.net, rth@twiddle.net Subject: [Qemu-devel] [PATCH v4 7/7] 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 1fd1731..a9c9d6f 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 b229061..c09c188 100644 --- a/tcg/tcg.h +++ b/tcg/tcg.h @@ -440,10 +440,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];