From patchwork Sat Feb 25 08:59:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 656452 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp1352476wrb; Sat, 25 Feb 2023 01:03:53 -0800 (PST) X-Google-Smtp-Source: AK7set91kE5rI+PGtYSxsTmpKSyt0MxvRxZx4wGcS/7odpcExXN72ffBbbmw2WxVgbl3s0E/GK1M X-Received: by 2002:a05:622a:1649:b0:3bf:c675:3b65 with SMTP id y9-20020a05622a164900b003bfc6753b65mr2035403qtj.44.1677315832999; Sat, 25 Feb 2023 01:03:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677315832; cv=none; d=google.com; s=arc-20160816; b=gV1aYis8fwBzrMU/1GEvEAbMCe4PN6e+lZ2yGrThGZ/FaYK7iBtqBu6Z7EmMSsKQP7 tK37cG1hZuhWCCBuyQkC1fFUY976N3ppZE6Juef7N5ia09i/Rtdf/yHDcsWDmdrSlSZV s4LYSUXlaX7bXZ2D+0cngN08lDhJGwKi7YVzF8SGhjccfYbTVmHUzoXPOkvJ7TC+4ypF AnPMFzTw6paLOHC4DhrOHExr6PQF2W9oUX6Of/J5WWr9FQOYEdngnEB7EGU+F9SENuoV TK4wpLGMtvNpsyiL2F3yyDYADcUm22QTOBwN2PmFG8EokvlcYvoNtz8t1ciaCz3aXdG9 R8Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=IYCWwbbJIP8d6veHeIA0O5e/DufmdWm+tt9+vif/hVA=; b=DvzCkfg5MleLHFg0v/iRGensFTVGL0sDaDjEHKwC1/d+XjSyT/GUGzeoDrUygvT6de UENou99g5CVqmpAfJWLymG2iy61sD4+5GyXgQPut0zmHU2m4G2AClaJHwQp5UY5pa03e pheEOlNc18e4dqHo8HUzaKWdQ+EDVkL6fBymqgzbVQ31aeD3f1S4OpeqzVaajO8TmOE/ J0sFLh/vm+nlT4J0n7RmMfq9blrpg8j38b/X2I803z3ZhET8u89qWMrS5F85E5MWcm5K duGDE5rnLrStNPIWmQJGHQJzeQ7AjPINP0YKNuFdFoXBU9i8iDQncvwOvHcUw2EJAapD mhDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VUrQnVZ1; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id v12-20020a05622a188c00b003b63cc0efabsi1489098qtc.510.2023.02.25.01.03.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 25 Feb 2023 01:03:52 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VUrQnVZ1; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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) 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-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) 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) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-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 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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é 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) static inline TCGv_i32 tcg_temp_new_i32(void) { - TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_I32, TEMP_EBB); + TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_I32, TEMP_TB); return temp_tcgv_i32(t); } @@ -927,7 +927,7 @@ static inline TCGv_i64 tcg_temp_ebb_new_i64(void) static inline TCGv_i64 tcg_temp_new_i64(void) { - TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_I64, TEMP_EBB); + TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_I64, TEMP_TB); return temp_tcgv_i64(t); } @@ -946,7 +946,7 @@ static inline TCGv_i128 tcg_temp_ebb_new_i128(void) static inline TCGv_i128 tcg_temp_new_i128(void) { - TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_I128, TEMP_EBB); + TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_I128, TEMP_TB); return temp_tcgv_i128(t); } @@ -972,7 +972,7 @@ static inline TCGv_ptr tcg_temp_ebb_new_ptr(void) static inline TCGv_ptr tcg_temp_new_ptr(void) { - TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_PTR, TEMP_EBB); + TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_PTR, TEMP_TB); return temp_tcgv_ptr(t); }