From patchwork Wed Mar 1 02:56:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 657792 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp3272847wrb; Tue, 28 Feb 2023 19:07:56 -0800 (PST) X-Google-Smtp-Source: AK7set8Qtme1sFDz61okhhT4cx61C0eIRZBTE5apw2lstDvHXIvsxH0iyXCNGYYQWm39o7OQjw2J X-Received: by 2002:a05:6214:e89:b0:571:698:eac9 with SMTP id hf9-20020a0562140e8900b005710698eac9mr29788091qvb.18.1677640076262; Tue, 28 Feb 2023 19:07:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677640076; cv=none; d=google.com; s=arc-20160816; b=Zl3P7OuSwizGZTn7f5L9b8nD3BaAHMwzrWsm/f4N6AI9uatJBjyuFKSEH0MAQ8XQ6b Jf49AxBw9Unb9rfS7cQ4s3syU3zkSLXq+L6oD2+AWSjvTFuZLSUtq/Xrp3Bz1+REq+1p zEhkAZ4NHkMoSDfqXntZI4p2nr9n4S76aN9DeOwH95ArPsQytWrUoLyL1vzIZ3m0WvjP wrK7kN03srR6vBj3DjbgCe7Jgp+yU+vHUjitl3BDZrvLEx53X/CzGkssvT/gHKxFTznm h5rjTr6dabdaCLNKtdzFACLx3feRC4N+0X4gP/aAbhzOg5ZlMaewOMDhMjbusYCkHikT pnvw== 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=WO/WNmxqXYXjMjcDnY/5oHZY/YP6Syoy835yd9Gioo8=; b=NZywc5JBPP5yAhL+PQbnYgf4Ldnsxd9QtnazFKcLZ1bJVWm96QE+Q/tm+Iu2Jr49Ba vcPnUq5uZNkDz0to8FGlKU13KUuYgdh6PbOrie8rb9YLkDvTCmcwpH3GlH2Zlqf1I88y ezMROW2XSQk3ktJaSTO5TrpDKVt6Jf5BO+cIhJAwkAP8/wRx+7lFBA4ccX3UbN7ByAnf 4KhLHCpkvFszqutUcc4X+SPtDQLCjtz3WY6J37UzZ1ecaJRO6XXwgc+Cff46MQfbhEHp iz2OxU5Ff1jhWNdnBLFRphfGzNZVU29GcMvH33vuy5zX1adEHpfEKHIh5jJPl0IYu7LH fv0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O7XN2KOT; 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 w28-20020a05620a0e9c00b0073bad3ab5fcsi9283619qkm.150.2023.02.28.19.07.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Feb 2023 19:07:56 -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=O7XN2KOT; 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 1pXCiq-0004OO-J6; 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-0002X7-7y for qemu-devel@nongnu.org; Tue, 28 Feb 2023 22:01:25 -0500 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXCiH-0004Gs-0a for qemu-devel@nongnu.org; Tue, 28 Feb 2023 22:01:06 -0500 Received: by mail-pl1-x62e.google.com with SMTP id v11so9038306plz.8 for ; Tue, 28 Feb 2023 19:01:04 -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=WO/WNmxqXYXjMjcDnY/5oHZY/YP6Syoy835yd9Gioo8=; b=O7XN2KOTJsl4bLXEDz/6q/s5bZ3SbPCLkzeTFTM8mdwUPGiiSw9bvH6en0DFuWzBwT 1Smr8aRbe0u4JM0fz/kZHxcF1ocEtwJ/e+P3a0DbV2Jwq/yFXCKApEHn5QOhsiXAV8/I sJ7QvAqAmRLXiQqeNrg2bb63dmvnb8z48t8/Vh/AqNT9/vsxD12cPk+FFeUHUUvTNzos d7DrWvEHBkfKaXmS6cCkqIMUuOpMdKCsnO29EIaONxKlNAOjTZRZR3tXy/DGh+lo9yAv tPCZ2DaiR6CEZK2dx6airmPPwU94swoSI5SvRTgrJZe9g/11IEgTEFcEiKl/jZzRYhOR Z19w== 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=WO/WNmxqXYXjMjcDnY/5oHZY/YP6Syoy835yd9Gioo8=; b=jOUd5ZDPuVaJj238fx3ChpXTBSes2NCcUkzumbJ3OtzlgLxMecBliRHhRNJQTKVZDH wcBfzPN0RAkCHv0EOyJ4UXaXrRvZF13ci1UJ2+bnZ2spbioo4oly5m38R9QwbecfQWoz 2MraWrIOStUh1AVi1v+Gj6CR53eyDHWyyDOYGotQaAKIjtjw84XzS3xRYarI4VSWTpw2 7PWdLE6iO6xxMQ3UHWGJK9AwLu6xow6ob173Q3FBF68qdZqhh89/5yrnje4VXI/h0wmK AM8kBl2vacaO1qVtKX0s0RdDKHDZ6NjqGcNSf0Kg3nrB97Ely4MgIYWSijykn6C0jaSr Vc5A== X-Gm-Message-State: AO0yUKU5xZCTTM1BGW2yISAX9ttLoQuFarSFREK1/Ff8PmGAFNfuAKEA 8d2S01KaYPpiMkSMK5Hoh/Fnu0aKHe+jE0x86HQ= X-Received: by 2002:a17:903:41c6:b0:19c:1455:d588 with SMTP id u6-20020a17090341c600b0019c1455d588mr5693650ple.0.1677639663357; Tue, 28 Feb 2023 19:01:03 -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.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 19:01:02 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Daniel Henrique Barboza Subject: [PULL 45/62] tcg: Use tcg_constant_ptr in do_dup Date: Tue, 28 Feb 2023 16:56:26 -1000 Message-Id: <20230301025643.1227244-46-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 Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62e.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 Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Daniel Henrique Barboza Signed-off-by: Richard Henderson --- tcg/tcg-op-gvec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tcg/tcg-op-gvec.c b/tcg/tcg-op-gvec.c index a42e13a773..291a65c4bf 100644 --- a/tcg/tcg-op-gvec.c +++ b/tcg/tcg-op-gvec.c @@ -629,7 +629,7 @@ static void do_dup(unsigned vece, uint32_t dofs, uint32_t oprsz, * stores through to memset. */ if (oprsz == maxsz && vece == MO_8) { - TCGv_ptr t_size = tcg_const_ptr(oprsz); + TCGv_ptr t_size = tcg_constant_ptr(oprsz); TCGv_i32 t_val; if (in_32) { @@ -645,7 +645,6 @@ static void do_dup(unsigned vece, uint32_t dofs, uint32_t oprsz, if (in_64) { tcg_temp_free_i32(t_val); } - tcg_temp_free_ptr(t_size); tcg_temp_free_ptr(t_ptr); return; }