From patchwork Wed Oct 25 09:34:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 10026223 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F18656032C for ; Wed, 25 Oct 2017 09:40:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E9AF428AF9 for ; Wed, 25 Oct 2017 09:40:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DE89128B3E; Wed, 25 Oct 2017 09:40:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 69F1328B2C for ; Wed, 25 Oct 2017 09:40:56 +0000 (UTC) Received: from localhost ([::1]:47319 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7IBD-000349-J5 for patchwork-qemu-devel@patchwork.kernel.org; Wed, 25 Oct 2017 05:40:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7I6P-0008CQ-VQ for qemu-devel@nongnu.org; Wed, 25 Oct 2017 05:35:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7I6N-000842-68 for qemu-devel@nongnu.org; Wed, 25 Oct 2017 05:35:57 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:55764) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e7I6M-00082Q-VC for qemu-devel@nongnu.org; Wed, 25 Oct 2017 05:35:55 -0400 Received: by mail-wm0-x243.google.com with SMTP id u138so622803wmu.4 for ; Wed, 25 Oct 2017 02:35:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=C/0Z29hgsCcAa9pHLOebCWIpl6VGhJuHD6TbrrPTOvM=; b=ONTYUvQHHErcHG8KVSksWMmox6bpR4CKLr+aa3p9qvptDmaMnNLROdJ3kem94Uyv/L jmvwbyJtrfJluWc3kzUTP9j1y5qQ7cCTR/g8FJhqcsPdA05rcDBUlrumI8OVBLiysPad rlpafccMnY6BnQFOyOAAfp0E/yrxjieQI5Gow= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=C/0Z29hgsCcAa9pHLOebCWIpl6VGhJuHD6TbrrPTOvM=; b=HS0TZI99DBBvwinyim9sNA1XxZcFULTyfQKIf8zTdxcugfLwyBxtrmCyH8j50IWy1w vsAOPcmiq07HQHz9YRvMy8aTpl3dYnv6+yY5rClhebUUVUwK3+OcyHX2WSqfzwOWV08O 99+RufTxrIQPhScstlSRfkqsfrIlXp8CiddnsGvzeVObWwtXSuU8lvCZyu1hRTQ7pIpl Gv2Dwrd8F3vPFgzxtKU9odkY7/WxnC76ivQKt/xpqi4H+II+uZQN2nN1v/roSIL96wOX gGC/180V73ghKpS4Xdqds4dEx70U0dZGNyUwp4ydLxcKP3IbbgZ2JtmZwzQc6OVeARxX 29iQ== X-Gm-Message-State: AMCzsaVFZ1MiSgIl3/MYc58ZgTZhFKRnaYdSxYQ7RxntgnMph4E6758p qi7Se0DXLRmT/TG2cs+8ugxgxmyGyAo= X-Google-Smtp-Source: ABhQp+ToYFoz/3KQ6gW88gP2zYpsTolo4Y92xU9eQmaJHYngB4+YoAXHy8Gg0Lau+anQ2iKF83O1cw== X-Received: by 10.28.183.67 with SMTP id h64mr1123190wmf.76.1508924153617; Wed, 25 Oct 2017 02:35:53 -0700 (PDT) Received: from cloudburst.twiddle.net ([62.168.35.107]) by smtp.gmail.com with ESMTPSA id v23sm2751025wmh.8.2017.10.25.02.35.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Oct 2017 02:35:52 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 25 Oct 2017 11:34:55 +0200 Message-Id: <20171025093535.10175-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171025093535.10175-1-richard.henderson@linaro.org> References: <20171025093535.10175-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::243 Subject: [Qemu-devel] [PULL 11/51] tcg: Change temp_allocate_frame arg to TCGTemp X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, Richard Henderson Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Emilio G. Cota Signed-off-by: Richard Henderson --- tcg/tcg.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tcg/tcg.c b/tcg/tcg.c index 840e65c0d4..c10e73babe 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -2096,10 +2096,8 @@ static void check_regs(TCGContext *s) } #endif -static void temp_allocate_frame(TCGContext *s, int temp) +static void temp_allocate_frame(TCGContext *s, TCGTemp *ts) { - TCGTemp *ts; - ts = &s->temps[temp]; #if !(defined(__sparc__) && TCG_TARGET_REG_BITS == 64) /* Sparc64 stack is accessed with offset of 2047 */ s->current_frame_offset = (s->current_frame_offset + @@ -2152,7 +2150,7 @@ static void temp_sync(TCGContext *s, TCGTemp *ts, } if (!ts->mem_coherent) { if (!ts->mem_allocated) { - temp_allocate_frame(s, temp_idx(s, ts)); + temp_allocate_frame(s, ts); } switch (ts->val_type) { case TEMP_VAL_CONST: @@ -2382,7 +2380,7 @@ static void tcg_reg_alloc_mov(TCGContext *s, const TCGOp *op) liveness analysis disabled). */ tcg_debug_assert(NEED_SYNC_ARG(0)); if (!ots->mem_allocated) { - temp_allocate_frame(s, op->args[0]); + temp_allocate_frame(s, ots); } tcg_out_st(s, otype, ts->reg, ots->mem_base->reg, ots->mem_offset); if (IS_DEAD_ARG(1)) {