From patchwork Sat Mar 4 18:18:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 658767 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp1054580wrb; Sat, 4 Mar 2023 10:19:50 -0800 (PST) X-Google-Smtp-Source: AK7set+9Nzn8vBWH0ikr12R/WFCHX4VvLV8zsCeZsciy6Ab/UbpGISCUi3lh489hcJKiHVvbUUl7 X-Received: by 2002:a05:622a:1a1c:b0:3b8:6788:bf25 with SMTP id f28-20020a05622a1a1c00b003b86788bf25mr9445872qtb.23.1677953990414; Sat, 04 Mar 2023 10:19:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677953990; cv=none; d=google.com; s=arc-20160816; b=tHYWU+Bqc4SiiFpRIYWez411EWqKYS9SEMtmR6Iccwl6vO7jYifUnbC++3NrhfdCjb 1MAMcbIFs6V0Dw2RYWf8QApajQM7W8wheOR1HEwcicusSZf7MCApsAV/uRyfA+uLVED6 3Ys3J9VJNNFIOF7GtsfTV80wr9fRAVJIJ7sa1boG9h+cklpqem+lxzYRdiSPqj30yF6x Iaa3TyV0ZGpnOl24rteEVol2scCa70p5fXaf/eeSqh2q6JcYTY0Ol/40z2GiFJI1S+WF dwEnklZDGPFkBiaw3V+RCmDy6HJ3axMRGwl1pAeVNKkk+5ZCn5sjosD93fRv/PkCCVkP DwUQ== 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=Y9Yxuq9oSk+IAEhFz8O1INvxDLagZl+WTzfcEJCwEho=; b=KNSfuZRPNhw0tykNTvE73fsxcxLt/ACn067SpbBlAQPdqSGVbQ0Rzhokaxg6Z7j6vB 2plJ+Dqn9/Nq+wELWOdzHvthuZYqdRfh+OTLIidpzl8tHfrQKnSKETWe2r5+1kL7xEuQ i/ILmGJwhjBb1lWC1fWamltccHcD1QE48ZgyeZ3jidIhSuDvfd7c0BtJ2hHPyE5OesyI WmkyX6Q+aQxdV6bL6tXbxxO44/dS1vIMMaDwKg+YBu1v5jffdQ5gxmjKVtLXVrJXz1uY 2jdEMLQJLnfQuT/Y8H0zl7KxR0LmuWxygIDD4MNNMcjcDJiI8xXSdyfktCYi6okQK96h 47mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GfgywBfz; 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 bi5-20020a05620a318500b00742700dd7casi4061001qkb.514.2023.03.04.10.19.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 04 Mar 2023 10:19:50 -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=GfgywBfz; 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 1pYWTS-0006QP-QN; Sat, 04 Mar 2023 13:19:17 -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 1pYWTQ-0006OO-6q for qemu-devel@nongnu.org; Sat, 04 Mar 2023 13:19:12 -0500 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pYWTN-0003Me-Nc for qemu-devel@nongnu.org; Sat, 04 Mar 2023 13:19:11 -0500 Received: by mail-pg1-x52b.google.com with SMTP id h31so3295209pgl.6 for ; Sat, 04 Mar 2023 10:19:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677953948; 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=Y9Yxuq9oSk+IAEhFz8O1INvxDLagZl+WTzfcEJCwEho=; b=GfgywBfz35AbuxjVfJlSAM1gvH+VLw23/4t+VJBgUUW/bnBNrNgUNdAjNIXjZ4JmAM RaVRzBhaN9sRilggkXHWaG08zvTCikRQvFhEKd1vVGrTCkeAMSjUIEcVrjjSk9a5ruO3 fAlldyLtQ6Mm5wokPT4kMAZgxxKMrlE3mdKGzLK75jVgG+DPh7j7l36znE9qBNwIDM0D TAHjXAp731qmNnjcoWf1CyDBQLGvEPHsujRSkSIbYCvM4kpgLd8SneDa4u5NEwtWPXUv RwYMza1YUmXJ3Vy99cdR+BQWLSQOh59Q0gkEjxqS59N/WiPDX+hVW147l24ZHaji2R/q d1Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677953948; 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=Y9Yxuq9oSk+IAEhFz8O1INvxDLagZl+WTzfcEJCwEho=; b=QlRYtqs+tcfNzU5n0cISYKD8VbU3QRJeQMxQ1XtZfu6iMIs3tgS+iSLM8xeMfu9MXo Z27YWOVV3VvR+aNaKzrdv1+zAO6mW4x5U55QWXAtyBMTEUdtzBBNy3LHbsTpVh8QqNRP oHic9IViVBikXb0CVcJkAE5jRRr3h7qs9s8PhTgm2fy9c0AD5fIAbqrxSMV6GNYg3rqh WQcpdoJIWa15gLYFRx6vbAt8ylFjHLzZHh/is31sjtHFad9Wl/HYaY75iDc5qcu/3r3b BXRKji+4XVAR7PH+AHdfesUrSXkkIZXiSS3qihgg64dml+0yunSvp3dNL3TvbX60Wu/u m+Ag== X-Gm-Message-State: AO0yUKWo7Wze06ez4R1/m8n142ModxpTBQNGE3cVTBpIgpeqnakPKRs7 1b33mMQ3am/dsKD8WxZE4JfgOMLpe/YvOyQ2I9yfaw== X-Received: by 2002:aa7:9d11:0:b0:602:7c0:3afe with SMTP id k17-20020aa79d11000000b0060207c03afemr5912165pfp.26.1677953948385; Sat, 04 Mar 2023 10:19:08 -0800 (PST) Received: from stoup.. ([2602:ae:154a:9f01:62b1:64d8:8207:f04e]) by smtp.gmail.com with ESMTPSA id 25-20020aa79259000000b005d866d184b5sm3529668pfp.46.2023.03.04.10.19.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 10:19:07 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Aurelien Jarno , Jiaxun Yang , Aleksandar Rikalo Subject: [PATCH v3 07/20] target/mips: Drop tcg_temp_free from octeon_translate.c Date: Sat, 4 Mar 2023 10:18:47 -0800 Message-Id: <20230304181900.1097116-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230304181900.1097116-1-richard.henderson@linaro.org> References: <20230304181900.1097116-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52b.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 Translators are no longer required to free tcg temporaries. Signed-off-by: Richard Henderson --- Cc: Philippe Mathieu-Daudé Cc: Aurelien Jarno Cc: Jiaxun Yang Cc: Aleksandar Rikalo --- target/mips/tcg/octeon_translate.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/target/mips/tcg/octeon_translate.c b/target/mips/tcg/octeon_translate.c index 6a207d2e7e..103c304d10 100644 --- a/target/mips/tcg/octeon_translate.c +++ b/target/mips/tcg/octeon_translate.c @@ -40,8 +40,6 @@ static bool trans_BBIT(DisasContext *ctx, arg_BBIT *a) ctx->hflags |= MIPS_HFLAG_BC; ctx->btarget = ctx->base.pc_next + 4 + a->offset * 4; ctx->hflags |= MIPS_HFLAG_BDS32; - - tcg_temp_free(t0); return true; } @@ -61,10 +59,6 @@ static bool trans_BADDU(DisasContext *ctx, arg_BADDU *a) tcg_gen_add_tl(t0, t0, t1); tcg_gen_andi_i64(cpu_gpr[a->rd], t0, 0xff); - - tcg_temp_free(t0); - tcg_temp_free(t1); - return true; } @@ -83,10 +77,6 @@ static bool trans_DMUL(DisasContext *ctx, arg_DMUL *a) gen_load_gpr(t1, a->rt); tcg_gen_mul_i64(cpu_gpr[a->rd], t0, t1); - - tcg_temp_free(t0); - tcg_temp_free(t1); - return true; } @@ -103,8 +93,6 @@ static bool trans_EXTS(DisasContext *ctx, arg_EXTS *a) gen_load_gpr(t0, a->rs); tcg_gen_sextract_tl(t0, t0, a->p, a->lenm1 + 1); gen_store_gpr(t0, a->rt); - tcg_temp_free(t0); - return true; } @@ -121,8 +109,6 @@ static bool trans_CINS(DisasContext *ctx, arg_CINS *a) gen_load_gpr(t0, a->rs); tcg_gen_deposit_z_tl(t0, t0, a->p, a->lenm1 + 1); gen_store_gpr(t0, a->rt); - tcg_temp_free(t0); - return true; } @@ -142,8 +128,6 @@ static bool trans_POP(DisasContext *ctx, arg_POP *a) } tcg_gen_ctpop_tl(t0, t0); gen_store_gpr(t0, a->rd); - tcg_temp_free(t0); - return true; } @@ -167,10 +151,6 @@ static bool trans_SEQNE(DisasContext *ctx, arg_SEQNE *a) } else { tcg_gen_setcond_tl(TCG_COND_EQ, cpu_gpr[a->rd], t1, t0); } - - tcg_temp_free(t0); - tcg_temp_free(t1); - return true; } @@ -194,8 +174,5 @@ static bool trans_SEQNEI(DisasContext *ctx, arg_SEQNEI *a) } else { tcg_gen_setcondi_tl(TCG_COND_EQ, cpu_gpr[a->rt], t0, imm); } - - tcg_temp_free(t0); - return true; }