From patchwork Tue Oct 23 06:21:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Voevodin X-Patchwork-Id: 193363 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 831E92C00A6 for ; Tue, 23 Oct 2012 17:21:48 +1100 (EST) Received: from localhost ([::1]:45024 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQXs0-0004G9-O3 for incoming@patchwork.ozlabs.org; Tue, 23 Oct 2012 02:21:44 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQXrv-0004G2-FB for qemu-devel@nongnu.org; Tue, 23 Oct 2012 02:21:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TQXrr-0001lM-Fh for qemu-devel@nongnu.org; Tue, 23 Oct 2012 02:21:39 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:36471) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQXrr-0001lI-9l for qemu-devel@nongnu.org; Tue, 23 Oct 2012 02:21:35 -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 <0MCC00BR21OTJ490@mailout4.w1.samsung.com> for qemu-devel@nongnu.org; Tue, 23 Oct 2012 07:22:05 +0100 (BST) 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 <0MCC008ZX1NMAD70@eusync4.samsung.com> for qemu-devel@nongnu.org; Tue, 23 Oct 2012 07:21:33 +0100 (BST) From: Evgeny Voevodin To: qemu-devel@nongnu.org Date: Tue, 23 Oct 2012 10:21:18 +0400 Message-id: <1350973278-2236-8-git-send-email-e.voevodin@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1350973278-2236-1-git-send-email-e.voevodin@samsung.com> References: <1350973278-2236-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 v2 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 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 d326b36..19426f9 100644 --- a/tcg/tcg.h +++ b/tcg/tcg.h @@ -432,10 +432,6 @@ struct TCGContext { extern TCGContext tcg_ctx; extern TCGContext *tcg_cur_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 ccdcddf..3351012 100644 --- a/translate-all.c +++ b/translate-all.c @@ -34,9 +34,6 @@ TCGContext tcg_ctx; TCGContext *tcg_cur_ctx = &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];