From nobody Tue Feb 10 09:58:14 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1666274030; cv=none; d=zohomail.com; s=zohoarc; b=fOu2/gzD9k6DUFw8z22x2dd0Hexh63eo917j0K5X+alKvgWnzNNL6fn8Z3YDq4TANA9SmaLE05aHJUreulV3BkqInKEZy05UjVJwxeX0d/oU7OZnCkQ7wyNAUlqekdJgmNNE5OWdtUDqjyedtJlANG1DuXJMw4lcWkgDQFb3D9g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1666274030; h=Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=ecyLf9UvK3GuacwmNTSkckTuqIdVcU8ZGXDLAydoDBw=; b=L09b85L/ZPa6eSec6nre4o1cxzqZbbaXnzXiAMNXh5/PidYpkx7XaudTpaecriGKjqI23XPmJT4M7VvVm+3NWsi0PUP4CceNKFurEjBoaX26dCSstvImyRTSZpicSqXduxIuevcnFRvQxn8G17YGy5GkPdAuCUaEz328jBMfA0A= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1666274030388439.3834279231414; Thu, 20 Oct 2022 06:53:50 -0700 (PDT) Received: from localhost ([::1]:35606 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olVzR-0007hX-J5 for importer@patchew.org; Thu, 20 Oct 2022 09:53:41 -0400 Received: from [::1] (helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olVu1-00077p-DC for importer@patchew.org; Thu, 20 Oct 2022 09:48:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olU7T-0004v6-3d for qemu-devel@nongnu.org; Thu, 20 Oct 2022 07:54:00 -0400 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]:47029) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olU7P-00011U-6t for qemu-devel@nongnu.org; Thu, 20 Oct 2022 07:53:49 -0400 Received: by mail-pj1-x1033.google.com with SMTP id t12-20020a17090a3b4c00b0020b04251529so2808470pjf.5 for ; Thu, 20 Oct 2022 04:53:46 -0700 (PDT) Received: from localhost.localdomain ([149.135.10.35]) by smtp.gmail.com with ESMTPSA id w206-20020a627bd7000000b0056109e15638sm13065464pfc.54.2022.10.20.04.53.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 04:53:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=ecyLf9UvK3GuacwmNTSkckTuqIdVcU8ZGXDLAydoDBw=; b=o4stW68Y/IxzsZyLqUNdy9LBbqwuPkiy8Pj/woDWkGLNU4phGdORjZQe3BoBHz1Ymj KKuNp7pNlMJJmla86QlcQYHZLS1Hfaa3M8lkJLLi3ccsQzyAY+oFJsYigSDKjXGqFM9E tObiLE8TWYHofesIGgaLcmUppOgY+lABfLX2kqpOotiTeRMIjfT3YA0bsYNyKcDHV6/c 0SoF8OIuuGsWVGaxhPTy1mMOrrSE59tJ0/TOXn/1DLOstV2NGzJTDDSRY+odDZ9QR6mb 5STbpzFr7GSzWUh7QnD7SaSdjCTfNWOXxe+IbLWpb2eie3QsbdGJGlBB70Y78nk30YrG 774g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ecyLf9UvK3GuacwmNTSkckTuqIdVcU8ZGXDLAydoDBw=; b=Tt+xANfRLFQ7Iq7NOom/CTBc/hmiqsfasuDB91zHpwOzryYu9zUmqc0OvxF8PE3MVT QIEX7u5xBam6BwxKMiTeAu7M3amKe4SgzW1ztKk9s88uHcK/J8hlEG+9H+0hxW6DroIP P9ix1JX3y1LAqJrIEhJmLLpyu01lzM+9vmVYGf+H63i0G4rTCZhUp/AMeKhcROTy1VFc eeTsQM8zWb6byuMH5VLpM8/7swXijOM09PLw1rq/Z1/q0GvroY/dyoj/tmZEdNyRANki ZiDJ2Bs9GkStz3d5mwYCTUl90I38/D/BR1cSWiMipP+hK9p5WxQ/9CP6euyHtBoGN2SW vBFA== X-Gm-Message-State: ACrzQf3P8P4ZCcsXE7m7BoNX07Y8/5DWuePM27N1DLeRZfJHBd1ht/uO 7Tj+Tdbm1r/UOVwa3Zw9t+BHEAGBAebhdIQv X-Google-Smtp-Source: AMsMyM52nL6i9X4yuf9TUByizx+LGnMytjZuY7VcjcfQFSfxUl2Bx8E0YBn2hZ3+AOao7COPe5j2tA== X-Received: by 2002:a17:902:f541:b0:186:4b91:4501 with SMTP id h1-20020a170902f54100b001864b914501mr13545414plf.171.1666266825819; Thu, 20 Oct 2022 04:53:45 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 10/31] tcg: Add temp_subindex to TCGTemp Date: Thu, 20 Oct 2022 21:52:21 +1000 Message-Id: <20221020115242.2301066-11-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221020115242.2301066-1-richard.henderson@linaro.org> References: <20221020115242.2301066-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::1033; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1033.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1666274031902100003 Content-Type: text/plain; charset="utf-8" Record the location of a TCGTemp within a larger object. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- include/tcg/tcg.h | 1 + tcg/tcg.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h index d207bc47be..afa18986b1 100644 --- a/include/tcg/tcg.h +++ b/include/tcg/tcg.h @@ -456,6 +456,7 @@ typedef struct TCGTemp { unsigned int mem_coherent:1; unsigned int mem_allocated:1; unsigned int temp_allocated:1; + unsigned int temp_subindex:1; =20 int64_t val; struct TCGTemp *mem_base; diff --git a/tcg/tcg.c b/tcg/tcg.c index 6c4f949c85..135d9a9a0a 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -927,6 +927,7 @@ TCGTemp *tcg_global_mem_new_internal(TCGType type, TCGv= _ptr base, ts2->mem_allocated =3D 1; ts2->mem_base =3D base_ts; ts2->mem_offset =3D offset + (1 - bigendian) * 4; + ts2->temp_subindex =3D 1; pstrcpy(buf, sizeof(buf), name); pstrcat(buf, sizeof(buf), "_1"); ts2->name =3D strdup(buf); @@ -973,6 +974,7 @@ TCGTemp *tcg_temp_new_internal(TCGType type, bool temp_= local) ts2->base_type =3D TCG_TYPE_I64; ts2->type =3D TCG_TYPE_I32; ts2->temp_allocated =3D 1; + ts2->temp_subindex =3D 1; ts2->kind =3D kind; } else { ts->base_type =3D type; @@ -1091,6 +1093,7 @@ TCGTemp *tcg_constant_internal(TCGType type, int64_t = val) ts2->type =3D TCG_TYPE_I32; ts2->kind =3D TEMP_CONST; ts2->temp_allocated =3D 1; + ts2->temp_subindex =3D 1; ts2->val =3D val >> 32; } else { ts->base_type =3D type; --=20 2.34.1