From patchwork Tue Mar 7 17:57:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 659791 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp2524928wrb; Tue, 7 Mar 2023 10:03:49 -0800 (PST) X-Google-Smtp-Source: AK7set/FJFdJ5SVFz7TBs6H86s0vIV3EjsSCDrmzl5BompROOP9MIe+3SDfAeO/IIeOqW5mpZmk4 X-Received: by 2002:a05:6214:d06:b0:56e:f4e0:a4ea with SMTP id 6-20020a0562140d0600b0056ef4e0a4eamr23690601qvh.17.1678212229695; Tue, 07 Mar 2023 10:03:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678212229; cv=none; d=google.com; s=arc-20160816; b=EvhtcgHwPe9YblqHlQqMVx1cRp/ngPCWSak2vtp+XaQwlBH3GMa+eLJ0bov0iuwZyQ BqU6+TcrZFpeT973q55kcfhGIs3Ktym6KDgprMg5197C4D3wxakmVHjq/sHror6lLzPj 1C3/pxvZR7WQmIi35KMH06lqOAIvtbofhOI0QHa5SxGduzTWzBE3RubHMEru5JliIprb hqc+NfcOQKKMRPukwvH0SYxnFuPlXd9vCaJWTFSfVL4EaArEDm6bdjbeymaVfYAF0mre eG2DULz0NPjvAA/SDXWErYl2nWWFIE6Bw/toUjs8g4Fi2sAHxlzmNj4ufSl/3cQoopOD LrgA== 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=pY1TUb+G/BtfexTgidsHKfcaqjVC/yh2llEERSh6exc=; b=Aqf5w5P0zB3ZsRQaCqRxmwVBNaIzswDtYS+XVN0ZTb3Jr2yCIhAbbpi1jzHYIImve0 mLNf4CT7DS/b1iSNTPfr3UxDqOwPiBAhnOo4zSmoeTZPMp0oS8JF2EGhcCB643i8ONM7 6HYzRp/TQe25GxD6SQVA1D95oYuX8528rRoIxh56Orsfe/1zgvLnWHS7CrwEhzZKop1s wleSMfXRWJtOo1b1p/FT+nqsW1x7SiMR1FoosaL54YGN3NX8fLS2ayOF2F2aGwUw0ZVy 2qIyR7NMytiQDfyfgCjf78kfqAJtVrGFw2Zku7PSZWrHnqyJr+9KMp1uPUddaWin0AH4 Jbdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RNe1sruN; 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 s144-20020a374596000000b007092958d782si9123289qka.417.2023.03.07.10.03.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Mar 2023 10:03:49 -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=RNe1sruN; 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 1pZbaY-00064v-G8; Tue, 07 Mar 2023 12:59:02 -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 1pZbaU-00060k-Mn for qemu-devel@nongnu.org; Tue, 07 Mar 2023 12:58:58 -0500 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZbaR-0000Cq-Uf for qemu-devel@nongnu.org; Tue, 07 Mar 2023 12:58:58 -0500 Received: by mail-pj1-x1030.google.com with SMTP id y2so14026010pjg.3 for ; Tue, 07 Mar 2023 09:58:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678211933; 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=pY1TUb+G/BtfexTgidsHKfcaqjVC/yh2llEERSh6exc=; b=RNe1sruNb3n38EqdylaAHa6oLIIJkEhLdfp/lf6VbEr4B5olFszg/ZwAopKZLqs2Rr 6VStQJoLOeIdAwamqd6Kc9bUBEr66UEcvd+Hvpsvyvy56LItXLJgPAmPrIHHoYqB4upW LKPVN2Ta9S+2FupZd7la0B7DRnlMEuUJktLZKH65v50px51LrUQurqAAGSkd8Nc12VEv cLzsPgmcgtX303KdJm9SvW2ULE4J74tig2jZ2Uh7UY+EVRVpd/IdX78QToGYTfJoo2np nhH+lIBT80WKGCPKRDUAnXz8Z0Isgb1kMbQqF+6ZuJ+AMuvukdNLgatGY0mUtypktEB8 4E0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678211933; 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=pY1TUb+G/BtfexTgidsHKfcaqjVC/yh2llEERSh6exc=; b=bfz6vNOR5MdmpnQS/HOeWo3MNeatOzewccPDEsOf/BzqJinyhdNYgYe0x9zdR8q0hS fxpXIxWTN5X16pHJUds5rPjTSOyAVGXgZE8bmU9c8OvlNl1OCbACeupNifegT4bPJkrq zon5me5r1M2tTiVxhXuEuny1zPWWV3jndUYouyi14R9LmNOTwF72+izEfrwn5fRlXB7s qF1xLSNCHYU5tUzvMmR8qSjgYIGkusd23Ii8d+81Fw7e3EGfFkjCTnj8as2hhRgDcTFS tR9Wyhob9Tn0J8v5gWiBZLdD0MSA5az3Ow7BNJ0KwlhWuPzokqR4wqfRkufCEf2/AuoO V83g== X-Gm-Message-State: AO0yUKVel7LXfIR8tFZL1FOIUf2rOlIBJ+2SBmw4UoKdBQML0DexWg0N T344p3Gnz+gpL+Y4FP8iEsaAzf6LjgJG+OHPftU= X-Received: by 2002:a17:902:f684:b0:19e:68b0:b06a with SMTP id l4-20020a170902f68400b0019e68b0b06amr19575700plg.50.1678211933426; Tue, 07 Mar 2023 09:58:53 -0800 (PST) Received: from stoup.. ([2602:ae:154a:9f01:b1e0:bfd9:8b1a:efeb]) by smtp.gmail.com with ESMTPSA id bd6-20020a170902830600b00198e397994bsm8661802plb.136.2023.03.07.09.58.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 09:58:53 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 05/67] target/mips: Drop tcg_temp_free from octeon_translate.c Date: Tue, 7 Mar 2023 09:57:46 -0800 Message-Id: <20230307175848.2508955-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230307175848.2508955-1-richard.henderson@linaro.org> References: <20230307175848.2508955-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1030.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. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- 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; }