From patchwork Thu Mar 9 20:04: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: 661065 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp497717wrb; Thu, 9 Mar 2023 12:10:41 -0800 (PST) X-Google-Smtp-Source: AK7set9HTf8vNOxxwmi5uyjfwdMMFxp0Rj4aq2Qnu/jrFBdcVts3iZZlGmb57SPOpFyXKCmKJ381 X-Received: by 2002:a05:600c:4f44:b0:3eb:383c:1870 with SMTP id m4-20020a05600c4f4400b003eb383c1870mr483972wmq.11.1678392641412; Thu, 09 Mar 2023 12:10:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678392641; cv=none; d=google.com; s=arc-20160816; b=ZB8M8vLxYnjTF1rkIuJIxGakJPjo/6Tzt4SZXv1lOeV4C6vX7rCbI23iRr7vjTlOMv sDDnWluTK6n1u8I7IAbOTSjK+7Ea19P6eAeYt42acMu8ukN8STOM2IuHxvFHoAXmBIYZ iE6EndBUHUNuxwUI3HRO/ecwDixxyZQ6NvkeVms9C0KYBl0jn1MPQj9+BgeXLxwlD3Ur 1z5ufEXul1Mp7eP+jl0qlfXFVVl4c/y1LUUlEPwuBGPWxPlMym9pxHSBWUNEHfeHwVR/ orHJrtTu1aqHK9MmM3c/Z38v6LRP4mzmqsFoxDUiGXdpfUHOOugA5oziOUDPfEJsQ6iF JkGA== 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=Axp9uynrvpeAYKsp59LS4V2qfdQNlIwcXSTLepZ7I4I=; b=v3c27H+nWYLaQl3Ekxb8HtMaAnlTi7S9PKH6c32NFOwOfjDSUeGTX/tfl9dgB1R9au eHLdY9VVrhCV5RPInTGlCsSjZiCoTj6nBC/bWXP1JEjEqMqH1ksvhwUG3L6/JkjenWkA XLveB9AxRp1SyFW/LL7VGDQXB68ykH0DAiesiHF/qZbZEV7WDeM98tg5T/2L/H7zYOgV TRDkG9RVIWCSN5DvyuebU3EFHzdzWvuzJS7Q53iV/z8tKNlm7bc7TpQ32rTo2OAQUhAz sliQmQBtMEpIZYvuNBYsSU3Z8Bak4VZRfjMlu1wwqBKhxofMbb9mOsB0QJ1JeqOx9ubr M7vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=j1pYvH6y; 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 a11-20020adffacb000000b002787ce8057csi254030wrs.457.2023.03.09.12.10.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Mar 2023 12:10:41 -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=j1pYvH6y; 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 1paMWa-0003qa-9M; Thu, 09 Mar 2023 15:06:04 -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 1paMWX-0003mh-Is for qemu-devel@nongnu.org; Thu, 09 Mar 2023 15:06:01 -0500 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1paMWV-0000hZ-UY for qemu-devel@nongnu.org; Thu, 09 Mar 2023 15:06:01 -0500 Received: by mail-pj1-x102c.google.com with SMTP id ce8-20020a17090aff0800b0023a61cff2c6so6659679pjb.0 for ; Thu, 09 Mar 2023 12:05:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678392358; 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=Axp9uynrvpeAYKsp59LS4V2qfdQNlIwcXSTLepZ7I4I=; b=j1pYvH6yxbu6FFbvNScJlpRQCI6m55RjncKebM5yE2Oi07XKJPUDLIQdZ/0PPbbjPW IkgTPhAxg4edNjcKbLW13VpGKeIdEcuSp5UGFKGsJG2zFXu0MfyBEkYuVP/xqz8lyBPB b7gR/cTysQnfVvHY/bTo8Mcoah9h+zAELZiuhmRhzmvK8htMlDQCWhN4O/x5KvRJKNz8 TGOQ0peYxVMkPgNGUHZkJQ02XbjRs17PYoyi3vZu1kfyd1T1hX8nUMeXzR2q53b+e7K3 cVxPFrSMIgBwvPpSReBd3Mh92QublgbGSDjWAS42XE9/9/RY2X5Mf1ztfEtWCp92afnA HCew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678392358; 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=Axp9uynrvpeAYKsp59LS4V2qfdQNlIwcXSTLepZ7I4I=; b=q9EXABtnaH7WITW7+ym/XV0JpY4SpwYQrK75n4tJyd2fjYNlaJu9ZW6o+Qzn/VfGh5 5kTMkg8xMzzFrlotAesg1qHSD8sMBYr/xdcGzbKALw0tu0PpGDLDK5u9Cd3RyzBHYoPB PL/8W94/nr/P/44aR7ZQ8xXsAYqUTzoarA5YNIjX1DDauVyYi3rN8WcicZgY+6SZjxeB GnxXQWEjicS9pTCY2fXEBLGKHHjPiNVvLRS9MPoOSD7d7x61cJ0odBvoXze/cf/J4zys dcahx9Fsx8J9DRwgJYeUsijzkR0JPfYy//qkp3qbvUET41nAezN58cYrXOt2uU5RwBC6 imKQ== X-Gm-Message-State: AO0yUKVip7soS6OVYEVfoz9S4NFM0MORq8Z7FIkI+xdpuNXcfOcn9NJc pMJ0A4RPYB5zL9k5KgjgN+VstKPjtaywZYrkasY= X-Received: by 2002:a17:90a:f2cc:b0:237:98eb:c98b with SMTP id gt12-20020a17090af2cc00b0023798ebc98bmr23392776pjb.25.1678392358494; Thu, 09 Mar 2023 12:05:58 -0800 (PST) Received: from stoup.. ([2602:ae:154a:9f01:bf7f:79a0:a976:bdaf]) by smtp.gmail.com with ESMTPSA id t20-20020a17090ad15400b002340f58e19bsm308083pjw.45.2023.03.09.12.05.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 12:05:58 -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 v2 07/91] target/mips: Drop tcg_temp_free from tx79_translate.c Date: Thu, 9 Mar 2023 12:04:26 -0800 Message-Id: <20230309200550.3878088-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230309200550.3878088-1-richard.henderson@linaro.org> References: <20230309200550.3878088-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102c.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/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; }