From patchwork Sat Mar 4 18:18:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 658775 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp1054973wrb; Sat, 4 Mar 2023 10:21:08 -0800 (PST) X-Google-Smtp-Source: AK7set8NJRcoiZRLlGukz8gluaFeA0ujtUI8mGqd8dxAOIuthdEiOdEMVzhL0gZ9O7Rs9igJB1n2 X-Received: by 2002:ac8:5784:0:b0:3bf:d258:4a85 with SMTP id v4-20020ac85784000000b003bfd2584a85mr10568373qta.66.1677954068331; Sat, 04 Mar 2023 10:21:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677954068; cv=none; d=google.com; s=arc-20160816; b=D2Dp8Evtv9F2GtGhqiTeRWzu2SV1yrtsMEVWfdZvQrZ10c8pXQjeHSBqoHtS9omhx6 AdhZWOZGk3JmwgGpzJnOK87raUzXJsaaPiqIUcPKUDwd1h/MQwjbFx5ttacnb7LycHwT ks8ENZrByTVVyIB7k9SlF+HiW1YMutuC80qXvihI/+TKqmO6Jr97xBKSwAaSdBVSb2hM MP4MfoOqqvsrYsu+ZZSjKigR+ZjqTUEKNG7q9VgEnxdwNHp3sg73qF7IAa9VjyVkiu4B hS0tmSbeeWp/gqkQNDAHW3Lk3tHJh14t/0aE3kVARb8s3QwDYL19iWSbe5X73/hDk3m7 pQ3A== 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=nzwi1YY4fVnASIKsZHJLoZ/APWSKzcHeQLTvYVw2zL8=; b=PQ1RaegypujCgNo970FxXN84YKWwjPsPNvMSOIlboYQA5ob9stkbhU41Tu1F8NtBFP 1UJXywRORylynAgOqCwm4qV1ZcVZrxev9YxsVhXrczNLfrbvIAjFr1r9R+fXHF9HbkcA irmybjTXpcQFtuaaZyrGIztm4Y4hbCi9h2bvnxw/hGe6NHV1mNA10tZNUZfECgbYHQIi UptNedctCVPC0pK4vy19CRIt+DXbyrxzGm6GNc08nLgOMFW3kNW/1kwh0goNcrs+tnSW 8XzgoStwO4/IuTeuEgxX9tTKoL8uKAI1xni6yECv1vqxHbdCkyTSnCddI6LkqotmQqk2 tA7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MZ7ztywN; 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 bs44-20020a05620a472c00b00742566c8a80si4801580qkb.46.2023.03.04.10.21.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 04 Mar 2023 10:21:08 -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=MZ7ztywN; 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 1pYWTX-0006Sq-4h; Sat, 04 Mar 2023 13:19:19 -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 1pYWTR-0006P0-Az for qemu-devel@nongnu.org; Sat, 04 Mar 2023 13:19:13 -0500 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pYWTP-0003N3-KS for qemu-devel@nongnu.org; Sat, 04 Mar 2023 13:19:13 -0500 Received: by mail-pj1-x1032.google.com with SMTP id x34so5943544pjj.0 for ; Sat, 04 Mar 2023 10:19:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677953950; 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=nzwi1YY4fVnASIKsZHJLoZ/APWSKzcHeQLTvYVw2zL8=; b=MZ7ztywNE98M97DRv1yZZ+zEo6VebFenw23bkdrumJ2YIaXacQOMderRJJod/Sbb/Y 2il3Mfbo7cEEBb9xHyHcE/Sq3tDdMIKMoOLl6f26o7XMzj+4CkZkqi7yLhMXBXIr9RQl jIKxLNDgHOAp+Gtg+WdfQc4zQea819pEZ64DfcPNdyZo67BOFDCoMcZe7MGqRQIWx+CT Eqa6sXt0SzQAUhEmJKTOPndDfejHBkUm/FeOKETtzWdSa6eC55DpMyRAcBnhcne3MeLf j6Vk7uQUQ7YjFQgOW+93u8GHlTsT5tN/PaljELGU5JD02adft1C2ocnxPPHfiu1zkZyk nLfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677953950; 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=nzwi1YY4fVnASIKsZHJLoZ/APWSKzcHeQLTvYVw2zL8=; b=hfDk3YiWBO0SclGhZQAlxciuOqpkJ7O1d8Ns9Mw2sJaOfr+MRa4o5gFZwXStgx1DaJ tDqQvEfCS0xm5EpzT7pEnMGfePQUzTYRknus7Tr6Z1GkjEwSTRecCBhuyHOzSNj55rDR qca0KYNhXPP0S9N8hywebKd50wfqjLwNkT4ONigqng9yAeffUogrWiaObMtx4QxX1Shw A4xQDTp6sr9jkr++bOOgdi/qT15xIVvAO0z1d+co0/5ml7tEdkcsD8KRDrHObPNbUW2N i4W2cWMxJNv2FdM3+URUPyAYQDsvc2qaJGgyzKy0UUj16f0gKteT7DkgMmGvQfF3mnbF akIA== X-Gm-Message-State: AO0yUKUNRJyVqB3o/zF+Lc/zwUFF+0ik3dV3UKy05tSBo2SdlBjREF4p MYRcHokgCFiOJY3EctrFvcqHr5WGtxXkArF2lPwg7w== X-Received: by 2002:a05:6a20:6982:b0:cb:c276:58d6 with SMTP id t2-20020a056a20698200b000cbc27658d6mr11157382pzk.34.1677953950180; Sat, 04 Mar 2023 10:19:10 -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.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 10:19:09 -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 09/20] target/mips: Drop tcg_temp_free from tx79_translate.c Date: Sat, 4 Mar 2023 10:18:49 -0800 Message-Id: <20230304181900.1097116-10-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::1032; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1032.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/tx79_translate.c | 41 -------------------------------- 1 file changed, 41 deletions(-) diff --git a/target/mips/tcg/tx79_translate.c b/target/mips/tcg/tx79_translate.c index 4e479c2d10..d46bc73972 100644 --- a/target/mips/tcg/tx79_translate.c +++ b/target/mips/tcg/tx79_translate.c @@ -138,10 +138,6 @@ static bool trans_parallel_arith(DisasContext *ctx, arg_r *a, gen_load_gpr_hi(ax, a->rs); gen_load_gpr_hi(bx, a->rt); gen_logic_i64(cpu_gpr_hi[a->rd], ax, bx); - - tcg_temp_free(bx); - tcg_temp_free(ax); - return true; } @@ -273,15 +269,6 @@ static bool trans_parallel_compare(DisasContext *ctx, arg_r *a, tcg_gen_movcond_i64(cond, t2, t1, t0, c1, c0); tcg_gen_deposit_i64(cpu_gpr_hi[a->rd], cpu_gpr_hi[a->rd], t2, wlen * i, wlen); } - - tcg_temp_free(t2); - tcg_temp_free(t1); - tcg_temp_free(t0); - tcg_temp_free(bx); - tcg_temp_free(ax); - tcg_temp_free(c1); - tcg_temp_free(c0); - return true; } @@ -362,10 +349,6 @@ static bool trans_LQ(DisasContext *ctx, arg_i *a) tcg_gen_addi_i64(addr, addr, 8); tcg_gen_qemu_ld_i64(t0, addr, ctx->mem_idx, MO_TEUQ); gen_store_gpr_hi(t0, a->rt); - - tcg_temp_free(t0); - tcg_temp_free(addr); - return true; } @@ -389,10 +372,6 @@ static bool trans_SQ(DisasContext *ctx, arg_i *a) tcg_gen_addi_i64(addr, addr, 8); gen_load_gpr_hi(t0, a->rt); tcg_gen_qemu_st_i64(t0, addr, ctx->mem_idx, MO_TEUQ); - - tcg_temp_free(addr); - tcg_temp_free(t0); - return true; } @@ -458,11 +437,6 @@ static bool trans_PPACW(DisasContext *ctx, arg_r *a) gen_load_gpr_hi(t0, a->rs); /* a1 */ tcg_gen_deposit_i64(cpu_gpr_hi[a->rd], a0, t0, 32, 32); - - tcg_temp_free(t0); - tcg_temp_free(b0); - tcg_temp_free(a0); - return true; } @@ -506,10 +480,6 @@ static bool trans_PEXTLx(DisasContext *ctx, arg_r *a, unsigned wlen) tcg_gen_shri_i64(bx, bx, wlen); tcg_gen_shri_i64(ax, ax, wlen); } - - tcg_temp_free(bx); - tcg_temp_free(ax); - return true; } @@ -541,10 +511,6 @@ static bool trans_PEXTLW(DisasContext *ctx, arg_r *a) gen_load_gpr(ax, a->rs); gen_load_gpr(bx, a->rt); gen_pextw(cpu_gpr[a->rd], cpu_gpr_hi[a->rd], ax, bx); - - tcg_temp_free(bx); - tcg_temp_free(ax); - return true; } @@ -564,10 +530,6 @@ static bool trans_PEXTUW(DisasContext *ctx, arg_r *a) gen_load_gpr_hi(ax, a->rs); gen_load_gpr_hi(bx, a->rt); gen_pextw(cpu_gpr[a->rd], cpu_gpr_hi[a->rd], ax, bx); - - tcg_temp_free(bx); - tcg_temp_free(ax); - return true; } @@ -678,8 +640,5 @@ static bool trans_PROT3W(DisasContext *ctx, arg_r *a) tcg_gen_deposit_i64(cpu_gpr[a->rd], cpu_gpr[a->rt], ax, 0, 32); tcg_gen_rotri_i64(cpu_gpr[a->rd], cpu_gpr[a->rd], 32); - - tcg_temp_free(ax); - return true; }