From patchwork Wed Sep 12 20:44:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Weil X-Patchwork-Id: 183430 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 19BBF2C009A for ; Thu, 13 Sep 2012 06:45:18 +1000 (EST) Received: from localhost ([::1]:44885 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBtoB-0007ao-MG for incoming@patchwork.ozlabs.org; Wed, 12 Sep 2012 16:45:15 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBtnx-0007aE-DC for qemu-devel@nongnu.org; Wed, 12 Sep 2012 16:45:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TBtnv-0001Ak-IY for qemu-devel@nongnu.org; Wed, 12 Sep 2012 16:45:01 -0400 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:35469) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBtnv-0001AS-C4 for qemu-devel@nongnu.org; Wed, 12 Sep 2012 16:44:59 -0400 Received: from localhost (v220110690675601.yourvserver.net.local [127.0.0.1]) by v220110690675601.yourvserver.net (Postfix) with ESMTP id ACB3C728002E; Wed, 12 Sep 2012 22:44:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at weilnetz.de Received: from v220110690675601.yourvserver.net ([127.0.0.1]) by localhost (v220110690675601.yourvserver.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8di+6hi42JKe; Wed, 12 Sep 2012 22:44:58 +0200 (CEST) Received: by v220110690675601.yourvserver.net (Postfix, from userid 1000) id 681D6728002F; Wed, 12 Sep 2012 22:44:58 +0200 (CEST) From: Stefan Weil To: Blue Swirl Date: Wed, 12 Sep 2012 22:44:38 +0200 Message-Id: <1347482678-9458-5-git-send-email-sw@weilnetz.de> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1347482678-9458-1-git-send-email-sw@weilnetz.de> References: <1347482678-9458-1-git-send-email-sw@weilnetz.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 78.47.199.172 Cc: Stefan Weil , Alexander Graf , qemu-devel@nongnu.org, Aurelien Jarno , Richard Henderson Subject: [Qemu-devel] [PATCH 4/4] tcg: Remove unused parameter from tcg_target_get_call_iarg_regs_count 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 Since commit 6a18ae2d2947532d5c26439548afa0481c4529f9, 'flags' is no longer used in tcg_target_get_call_iarg_regs_count. Signed-off-by: Stefan Weil --- tcg/tcg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tcg/tcg.c b/tcg/tcg.c index 53316f6..0f0a8d0 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -182,7 +182,7 @@ int gen_new_label(void) #include "tcg-target.c" /* Maximum number of register used for input function arguments. */ -static inline int tcg_target_get_call_iarg_regs_count(int flags) +static inline int tcg_target_get_call_iarg_regs_count(void) { return ARRAY_SIZE(tcg_target_call_iarg_regs); } @@ -1871,7 +1871,7 @@ static int tcg_reg_alloc_call(TCGContext *s, const TCGOpDef *def, flags = args[nb_oargs + nb_iargs]; - nb_regs = tcg_target_get_call_iarg_regs_count(flags); + nb_regs = tcg_target_get_call_iarg_regs_count(); if (nb_regs > nb_params) nb_regs = nb_params;