From nobody Tue May 13 23:45:34 2025 Delivered-To: importer2@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+importer2=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1677315831; cv=none; d=zohomail.com; s=zohoarc; b=NZ6UEuEYxfvKJ5DlH1//h2Emt6M/U5ELLtjyLgfP/VzYFhT4NOuMuCFv6QrRpjYGQKq9EVv40xNTjevvwNDno/dGppAMS1o8uMx7VY5ULgsj1HfOPzFHcCiYMe9IXFGoiurTFZ/HzlqpYVJMIEFwBiygPZ2mRaaWomTY40SHi4A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677315831; h=Content-Type:Content-Transfer-Encoding:Cc: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=IYCWwbbJIP8d6veHeIA0O5e/DufmdWm+tt9+vif/hVA=; b=BL215cAvWkOcv1XRgSLcbArjlHp5I5oYhDOcGpEXlzM8pV/yb2nuk6eHNG5nEt7jPols6FBL1kcghaqUSN8xalnC3XnyGFMoknQClRZElPDNDYIMSrEA2bek2id5+TDQid47d33sPykDKiGhC1FCcTlh3bogrDuaCpm21ZnZAH4= 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+importer2=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 1677315831231755.2870858462733; Sat, 25 Feb 2023 01:03:51 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVqQE-0001Yy-J7; Sat, 25 Feb 2023 04:00:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pVqPj-0000YP-C5 for qemu-devel@nongnu.org; Sat, 25 Feb 2023 04:00:23 -0500 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVqPh-00055I-Gl for qemu-devel@nongnu.org; Sat, 25 Feb 2023 04:00:19 -0500 Received: by mail-pl1-x62b.google.com with SMTP id l15so1885951pls.1 for ; Sat, 25 Feb 2023 01:00:16 -0800 (PST) Received: from stoup.. (rrcs-173-198-77-218.west.biz.rr.com. [173.198.77.218]) by smtp.gmail.com with ESMTPSA id s17-20020a639251000000b00502ecb91940sm715546pgn.55.2023.02.25.01.00.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Feb 2023 01:00:15 -0800 (PST) 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:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=IYCWwbbJIP8d6veHeIA0O5e/DufmdWm+tt9+vif/hVA=; b=VUrQnVZ1IGfsZCE8+qkzQqJ1oss8edsfToGLAdSIt40neYju0E8VmGYxrYyrz99aFN Syhn5Wf4e6sWWbnj/85jkJimt6/knMI7dD6YNntE2nhaFqCrqkdRBwvlmr0PgqTm2Du+ CCa+HIKujKcVUUFb+Nl+Ou3ZeaHxH2jdys1qQRZ72oXYef1B95QMwh1UtiXhUZjEmNey J0q5J3Qy64/luVQV2WUdf0GQ6ClOEQ0SAzQMJA07gfqIfyTF4PtaP0t74nwjk5gUyC57 itw4/uxT59FbY44JXDUbtcigslx/Tm+v+4neVgvg3PHVucwHA7JUBtP8s9uUdiBHIA6R HK9A== 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:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IYCWwbbJIP8d6veHeIA0O5e/DufmdWm+tt9+vif/hVA=; b=wf1D2U/Eks5BjeDjhcn0oiMWZW0XMmNGJoOIoyzUgUSGYP+P6AYQpmRsMzvbXkhQas OziuwtiHeq6rqE5fslkA/2GLREZPV25VWIPsca/7ERwkNQBEuIk56+EPJC658UlQIH7d uhNr7QnyWmwVd1tHDphNWJaopheCuAkruwgdAbhkdI5tNYhshWhKhQevGI5/S5OxhihM 3MGElZ4V8PtnBu4UuEf3PnD+CTeGDLhxhR5ovraQaUOdcCN99ubReYcDCGNBMCY9zIAF RPNdp9be6HkkLvWg4dSmjg58yd87ljiBGDMg7X4HtT0EMKcEvUV5oNehFSS/H+a15S8m GDSw== X-Gm-Message-State: AO0yUKXAg+lxGyytyRIrBhZvMrNt27M1RFRyOeyjzqgncB62Sv781zco 9zIA6i0xpCnC5ECIaFO9Eurwz5nKne569PBiSAU= X-Google-Smtp-Source: AK7set8ZSGtqLiDnDWC9JKohBoEj8dIPnR+wdOgpABY8xm/B8BW4FDsb3UlGhJzUnk3lt1Y86E+Ybw== X-Received: by 2002:a05:6a20:6a0c:b0:cb:a09e:6941 with SMTP id p12-20020a056a206a0c00b000cba09e6941mr17639776pzk.61.1677315615911; Sat, 25 Feb 2023 01:00:15 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v3 18/30] tcg: Change default temp lifetime to TEMP_TB Date: Fri, 24 Feb 2023 22:59:33 -1000 Message-Id: <20230225085945.1798188-19-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230225085945.1798188-1-richard.henderson@linaro.org> References: <20230225085945.1798188-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62b.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+importer2=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer2=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1677315832075100001 Guest front-ends now get temps that span the lifetime of the translation block by default, which avoids accidentally using the temp across branches and invalidating the data. Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Richard Henderson --- include/tcg/tcg.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h index 6cc6758cd6..2e220d4040 100644 --- a/include/tcg/tcg.h +++ b/include/tcg/tcg.h @@ -901,7 +901,7 @@ static inline TCGv_i32 tcg_temp_ebb_new_i32(void) =20 static inline TCGv_i32 tcg_temp_new_i32(void) { - TCGTemp *t =3D tcg_temp_new_internal(TCG_TYPE_I32, TEMP_EBB); + TCGTemp *t =3D tcg_temp_new_internal(TCG_TYPE_I32, TEMP_TB); return temp_tcgv_i32(t); } =20 @@ -927,7 +927,7 @@ static inline TCGv_i64 tcg_temp_ebb_new_i64(void) =20 static inline TCGv_i64 tcg_temp_new_i64(void) { - TCGTemp *t =3D tcg_temp_new_internal(TCG_TYPE_I64, TEMP_EBB); + TCGTemp *t =3D tcg_temp_new_internal(TCG_TYPE_I64, TEMP_TB); return temp_tcgv_i64(t); } =20 @@ -946,7 +946,7 @@ static inline TCGv_i128 tcg_temp_ebb_new_i128(void) =20 static inline TCGv_i128 tcg_temp_new_i128(void) { - TCGTemp *t =3D tcg_temp_new_internal(TCG_TYPE_I128, TEMP_EBB); + TCGTemp *t =3D tcg_temp_new_internal(TCG_TYPE_I128, TEMP_TB); return temp_tcgv_i128(t); } =20 @@ -972,7 +972,7 @@ static inline TCGv_ptr tcg_temp_ebb_new_ptr(void) =20 static inline TCGv_ptr tcg_temp_new_ptr(void) { - TCGTemp *t =3D tcg_temp_new_internal(TCG_TYPE_PTR, TEMP_EBB); + TCGTemp *t =3D tcg_temp_new_internal(TCG_TYPE_PTR, TEMP_TB); return temp_tcgv_ptr(t); } =20 --=20 2.34.1