From nobody Thu Dec 18 22:22:16 2025 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=1677640038; cv=none; d=zohomail.com; s=zohoarc; b=NQziN9ZtasErpMETBzsvfb+L6IkQOcQ6U+nWfmyoCA2Lb6rmEU8t5kIbkPrzfkYVmOhaneD0a0kUpQdkn+Or0OfA7HdwIyq4v5UMnrSEwuwH8GqcNyAKl0KF3GX2YIi6Ax54NklVfbKC9vnyFVSXOOvy2aCx+znXVKiolINoRJo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677640038; 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=JK+MXxmavKD9jA72tsS2y8x1zJwq1ufvnakUSh884zQmzdX3msX9oyWMrKuIFGgwLEDDGpBjKbbmt7ScPyiNV+jG5p634ytUqev9keRcA2b2bhkxdF597kf3RfpXI0uTsu9SeoUygniujDv+H9BToj531CpPQw0TDWOpYsht1/U= 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 1677640038872932.7032162752728; Tue, 28 Feb 2023 19:07:18 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXCiq-0004KU-C9; Tue, 28 Feb 2023 22:01:40 -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 1pXCib-0002Xy-Ej for qemu-devel@nongnu.org; Tue, 28 Feb 2023 22:01:25 -0500 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXCiN-0004JV-8J for qemu-devel@nongnu.org; Tue, 28 Feb 2023 22:01:12 -0500 Received: by mail-pl1-x631.google.com with SMTP id i10so12550840plr.9 for ; Tue, 28 Feb 2023 19:01:10 -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 r11-20020a170902be0b00b0019aca830869sm7181444pls.238.2023.02.28.19.01.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 19:01:09 -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=Wnc0P7ytboYxmbmWsIThIGiwT43p55Af2b3dXF0z58SKCX9P3MVYnT+Ej0sCCq+gSY 4kCF+lFgl9+pFZST5IQ+k7c1u7JfvMsest6Mcw/VBwUpkEH+AWOXO45mgVdSrlYmnhbT UJcfuC076RJ0cJnhIwn4kAfZWB0PeJGtcz2T+1I2RMz9JPuAUFFdzA/X869RVoZ9C8Jb gHxVnSYNfGyKQhXrwBS7voVCIjxdN82Oo+V2iRFjlUo7LmsUGbdFBjTvzB+Daab4aOMR TKzIwVzhpzMwV2NdhYVtO9xUJPioh4WgResfLZA5PyOCeg30pLy3saGcKmaEFSqyN4Ih tMWw== 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=TJHe/TYL/fFSdwoTyYp///r044q+Np3sApnziTU8bMZ3t7FyRWzpKul1fDBzmQK1Ab b1a/r4Zxk8088ALx3+hmW4bHmHNh7T+hK47FaOJ8AKNXyi4Qtk+y/alGz7Kv48wUcCbB eij2IvP8i8KZJIA+FJ7NlPwKndyjhCR5SN+eRaFMiCXy9QR+UbcsLLtWhL3OAI2uBBrE +1nDmSPrZCsIkZVTqAcqnmMxiaAcgQr6Prij9tSHjgZTGre/Qo4yqxOmsGC6p1/2Ro38 3F1gdu6TyCIdXKtb6uK1DSjNJK/6Xa08dpIfeyCc4d9RF/pdUjyfJawJ9bJTfnzawpWr OkYg== X-Gm-Message-State: AO0yUKVxPmMMdjgV7wla26LuA68QrqBQ2HFo47T9G+KmR5VXUfHAIoZj lsfK6CkrI7zLmktAOwvZDoVEFDquPzOZ9usaXPU= X-Google-Smtp-Source: AK7set/qbGpRUPy7CVjYxc/e8T6irbMSt8bGxuvGzxo8p0FMkrZWCy6CmWuSNfu5tb0otyW7JwW/9w== X-Received: by 2002:a17:902:ec85:b0:19d:138b:7c4a with SMTP id x5-20020a170902ec8500b0019d138b7c4amr5462022plg.3.1677639669736; Tue, 28 Feb 2023 19:01:09 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 49/62] tcg: Change default temp lifetime to TEMP_TB Date: Tue, 28 Feb 2023 16:56:30 -1000 Message-Id: <20230301025643.1227244-50-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230301025643.1227244-1-richard.henderson@linaro.org> References: <20230301025643.1227244-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+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x631.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-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1677640040173100001 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