From patchwork Mon Nov 12 09:27:49 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Voevodin X-Patchwork-Id: 198356 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 160FB2C0081 for ; Mon, 12 Nov 2012 21:29:40 +1100 (EST) Received: from localhost ([::1]:58726 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXqKF-0006NA-SC for incoming@patchwork.ozlabs.org; Mon, 12 Nov 2012 04:29:03 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXqJM-0004eQ-9m for qemu-devel@nongnu.org; Mon, 12 Nov 2012 04:28:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TXqJJ-0006dT-6I for qemu-devel@nongnu.org; Mon, 12 Nov 2012 04:28:08 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:17088) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXqJJ-0006dG-0w for qemu-devel@nongnu.org; Mon, 12 Nov 2012 04:28:05 -0500 Received: from eusync4.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MDD00IDIBNCUP70@mailout1.w1.samsung.com> for qemu-devel@nongnu.org; Mon, 12 Nov 2012 09:28:24 +0000 (GMT) Received: from evvoevodinPC.rnd.samsung.ru ([106.109.8.15]) by eusync4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MDD00AS6BMG4350@eusync4.samsung.com> for qemu-devel@nongnu.org; Mon, 12 Nov 2012 09:28:04 +0000 (GMT) From: Evgeny Voevodin To: qemu-devel@nongnu.org Date: Mon, 12 Nov 2012 13:27:49 +0400 Message-id: <1352712469-27974-8-git-send-email-e.voevodin@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1352712469-27974-1-git-send-email-e.voevodin@samsung.com> References: <1352712469-27974-1-git-send-email-e.voevodin@samsung.com> X-TM-AS-MML: No X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 210.118.77.11 Cc: Evgeny Voevodin , blauwirbel@gmail.com, kyungmin.park@samsung.com, edgar.iglesias@gmail.com, aurelien@aurel32.net, rth@twiddle.net Subject: [Qemu-devel] [PATCH v6 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 Signed-off-by: Evgeny Voevodin Reviewed-by: Richard Henderson --- 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 ea0bd3a..4f75696 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 6ffec1d..9481e35 100644 --- a/tcg/tcg.h +++ b/tcg/tcg.h @@ -465,10 +465,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];