From nobody Tue Feb 10 06:58:11 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1508542088961875.4119145890984; Fri, 20 Oct 2017 16:28:08 -0700 (PDT) Received: from localhost ([::1]:56008 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5ghw-00047M-1W for importer@patchew.org; Fri, 20 Oct 2017 19:28:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5gar-0005vf-3l for qemu-devel@nongnu.org; Fri, 20 Oct 2017 19:20:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5gaq-0007bt-9P for qemu-devel@nongnu.org; Fri, 20 Oct 2017 19:20:45 -0400 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]:44454) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e5gaq-0007bZ-3t for qemu-devel@nongnu.org; Fri, 20 Oct 2017 19:20:44 -0400 Received: by mail-pf0-x244.google.com with SMTP id x7so13079123pfa.1 for ; Fri, 20 Oct 2017 16:20:44 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-165-104.tukw.qwest.net. [97.113.165.104]) by smtp.gmail.com with ESMTPSA id a17sm3532594pfk.173.2017.10.20.16.20.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Oct 2017 16:20:41 -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; bh=lQ25zzp1lR1bCXxZVf8ZlpQuH3u4DytBLiYzdvzQFQ4=; b=cqTdlqHYYonf0U62Fq58JA4npybDf4ZRD2pD0zhx/VCpAgt9UVzQKBuXW8H+ywA3T7 Ud4bpmDAQD3llRoh08ofPFjsQ5V4Z/3kyd3I2eMH8nH++iPT8wGI04v+hDOpljsi+NJw SYiV4VwS6q15gxEfVarQzij6Ag6F+LZDO6/IE= 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; bh=lQ25zzp1lR1bCXxZVf8ZlpQuH3u4DytBLiYzdvzQFQ4=; b=nPnko5s17lDuocUNaisLLoZKDsYYSXg0RbfPRUxpJLGCDaatCeCIs2HCjDQLhDspKo Q33+RiqGglv2PndcYzmvjc5Cz4xKeLj0ukqz21m4J8Yym0JfcoF7Sc2xq2hpFb+TJYtK daII0hhfuc7KtwhNHZXT/RPbIOWscFBi1EYt+Di66raB4u/+xsvaa2K1nl5raYadZxkT aR99qNp8WbeD9yiBdemFz72Df9S2ioS1R4GSfe7fSL54oekJYm+NSyaP9bTiWqpXt8qA y9pa97YGXVh3BPObmfysEN2F8gW841JPWOS0TsizV8QaXi2qw0OVPk9g27oKe5BKuOx4 w+bA== X-Gm-Message-State: AMCzsaUUZ2nW7h04+boiq5HIS09Wh6ONGQPWmbtksdXn4o3hM9esfK9y /H5OCaOdrPpfHM+0VZYwzwqNc+z3uZo= X-Google-Smtp-Source: ABhQp+QNRe7K7e1tx1zOoZjbarLrm5DgTkhfRHGCN8wpOTAH3hmGU0E60xIK0ha8dUPWTRGxLbgGgg== X-Received: by 10.84.194.131 with SMTP id h3mr5383084pld.264.1508541642844; Fri, 20 Oct 2017 16:20:42 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 20 Oct 2017 16:19:42 -0700 Message-Id: <20171020232023.15010-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171020232023.15010-1-richard.henderson@linaro.org> References: <20171020232023.15010-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::244 Subject: [Qemu-devel] [PATCH v7 11/52] 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: pbonzini@redhat.com, cota@braap.org, f4bug@amsat.org, Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Richard Henderson Reviewed-by: Emilio G. Cota Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- 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 =20 -static void temp_allocate_frame(TCGContext *s, int temp) +static void temp_allocate_frame(TCGContext *s, TCGTemp *ts) { - TCGTemp *ts; - ts =3D &s->temps[temp]; #if !(defined(__sparc__) && TCG_TARGET_REG_BITS =3D=3D 64) /* Sparc64 stack is accessed with offset of 2047 */ s->current_frame_offset =3D (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 TC= GOp *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)) { --=20 2.13.6