From nobody Tue Feb 10 16:21:39 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 1508174975827995.6800290917452; Mon, 16 Oct 2017 10:29:35 -0700 (PDT) Received: from localhost ([::1]:34303 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e49Cf-0004Pz-1J for importer@patchew.org; Mon, 16 Oct 2017 13:29:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e499q-000227-Ld for qemu-devel@nongnu.org; Mon, 16 Oct 2017 13:26:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e499p-0003Pm-OP for qemu-devel@nongnu.org; Mon, 16 Oct 2017 13:26:30 -0400 Received: from mail-pf0-x234.google.com ([2607:f8b0:400e:c00::234]:56145) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e499p-0003PC-Iq for qemu-devel@nongnu.org; Mon, 16 Oct 2017 13:26:29 -0400 Received: by mail-pf0-x234.google.com with SMTP id 17so16278912pfn.12 for ; Mon, 16 Oct 2017 10:26:29 -0700 (PDT) Received: from cloudburst.twiddle.net (97-126-104-76.tukw.qwest.net. [97.126.104.76]) by smtp.gmail.com with ESMTPSA id i187sm5594249pfc.96.2017.10.16.10.26.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Oct 2017 10:26:27 -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=lJVN+S2DgazaSIILNv42s3kUvwnlG8Z7itYcAljEvG4=; b=Cim06HXu3qWkC93NH8i691JvDIyXHbhqmPymk2Qy65Q0H7n17FH7EaahsJsatxNLY8 aljKTqm7+fh3x5aDI8r390cH+Gr4kieRFYL6kOG48T866dVvOT15l1EMxL50lieg9RUr TG4pOoL4hRirxfnqAtobxIrHTpqF4ZSJOhBvw= 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=lJVN+S2DgazaSIILNv42s3kUvwnlG8Z7itYcAljEvG4=; b=tT2bdpnv6of/B17d5tmKkg3xh6OUFOjLqn00ioS4XLOHtrnhXwPmvM1Sh7JCWc1vdi 4Z9eFyM1ulCISu/XcbpmLB5q5GGungUeMAruAarWN3avJNOihj0WS6e8KRTj50XGlq8i 4J3oXNKodxN/q2QQzhGVM1IHOvs4t3mk8ewlff3ysnrf65SDGHnBf4pjteVxB3pRh8JZ wn0F/7FlAOgsxgTkjI0jzCypKfSa0gKOWgKUiW2VZuBh6IH2s2Xgb20D9Q3WxLCwfVWk be3krNhqF+R+nMTY2ZjToEqFmapqlEbBe7ksc5PjsvgXcNGo0KOH43C1fnjfYNXEJ33e Y67g== X-Gm-Message-State: AMCzsaWyprqmSizq3/8VeLeDaAtxQ3V7AJdKaKCEhzqZIsf37BlqQTma Ibr8OD417II6AMJXVw/Q3qa6OqvuXSk= X-Google-Smtp-Source: AOwi7QB+tDhbHVr3OMycf3GW/trP3/0dRYj9KfKehCpYwlDorZGhwqh7F5FTuqZLZdWkipjQLhd07g== X-Received: by 10.84.231.2 with SMTP id f2mr9352852plk.256.1508174788395; Mon, 16 Oct 2017 10:26:28 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 16 Oct 2017 10:25:30 -0700 Message-Id: <20171016172609.23422-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171016172609.23422-1-richard.henderson@linaro.org> References: <20171016172609.23422-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::234 Subject: [Qemu-devel] [PATCH v6 11/50] 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: cota@braap.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 Signed-off-by: Richard Henderson Reviewed-by: Emilio G. Cota --- tcg/tcg.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tcg/tcg.c b/tcg/tcg.c index bb342e06dd..163ec8b1c0 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -2103,10 +2103,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 + @@ -2159,7 +2157,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: @@ -2389,7 +2387,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