From patchwork Thu Mar 9 20:04:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 661041 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp496334wrb; Thu, 9 Mar 2023 12:07:48 -0800 (PST) X-Google-Smtp-Source: AK7set8CnO5+sVJeQ4Jh7Dk20zwoBbh6+GXI92brN7dlHLNcu9kxEM0axtbMEtdmiA0CmUsQr4MF X-Received: by 2002:ac8:7d4c:0:b0:3bf:d196:5e27 with SMTP id h12-20020ac87d4c000000b003bfd1965e27mr39461479qtb.20.1678392467896; Thu, 09 Mar 2023 12:07:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678392467; cv=none; d=google.com; s=arc-20160816; b=YlqcQgMcZfEf80/ztmB9KhZU16t0PnZPirsbFVI28N44DKxJ1b1cPkU8OsOyZiuYjx iONTU1efp1TY3zq8BCNOOJLAuun5Coxbj+U6yFFqsJCtHQkl0dU7J54m2ChM7ZyEczK8 EoMwvyio8oKwcUtUKKfbKrrcgA8jlVWskUCvMAuSW5vR8aFbUFU1Zaul12DSHDPU9XPE CECeYBKPWEi1F9T9tBaga7p1ssh8th8Agvb2hh/yVW4i9RJ5rjUHZksPRRkAjl9UuY4L Jl2QcO9aTXHE9FFV5KCEX0bF3xGfEeEzBfeso8X+vnCbWCyB08TBa+qezaZPdKBINe53 8B3w== 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=CjockYhWelpkA89u8rBpdCNAuPTh1O+y0bM/jqR+q/Q=; b=zMPeDpBxv6xnAB4LEnjQFmahImRMZozldAz/pGb3rst7mjT/e24COe+QPV5XWwh6mq aUzAw/T4/ls/TK7zsadG6kT0KT9V8TGLff9mPZnuxDkL3DQsHOtFO3ehGOM5Oc/VWR8F ciX5kOnC7K4niLVCtsJAAIEk45fz0Tm0Ayt5Swfs1UWoJU4ke9rVKEuJBVAHk43I2OZc IP+o5UlNHZegzJv/G6fT1k3PDXH4QlicVu/YrTJ7HTeKp+T9B28Sic5dXQsC20D/0T66 jhATTZB8IFsval3df4rPO3ZoD6QIz1C+MepP3/GjunhGTdbWgzYf8FfHb51NdIWl4Mwr 3dmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S0E8I6Wa; 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 o18-20020a05622a045200b003b86d9317c4si15269970qtx.2.2023.03.09.12.07.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Mar 2023 12:07:47 -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=S0E8I6Wa; 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 1paMWb-0003zS-Tq; Thu, 09 Mar 2023 15:06:05 -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 1paMWW-0003mA-OK for qemu-devel@nongnu.org; Thu, 09 Mar 2023 15:06:01 -0500 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1paMWV-0000hP-0Y for qemu-devel@nongnu.org; Thu, 09 Mar 2023 15:06:00 -0500 Received: by mail-pj1-x102e.google.com with SMTP id l1so3158889pjt.2 for ; Thu, 09 Mar 2023 12:05:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678392357; 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=CjockYhWelpkA89u8rBpdCNAuPTh1O+y0bM/jqR+q/Q=; b=S0E8I6WaG0Ys0JaTYoLyS5GnKCg86HGr0cS+5RXL76X4Tcftv+Ex4WsWdXyaLozbK1 3XuHwbNgd3SPAGQOtyfrl/bZoD7wnwjdNCg45fvubvaL/ViMatPacs3N4pKswwV99SCs elwL/H46PvtdLzPovQ+yCQZZvTOxyRj0+3LUK26gINnX+8dCeJZxCvU35r6u1Ff461zj gCnXFDNCUsSOCZ6BK0MrsKKLPgyJa+xqUV9bVf16ZZT85vjC/QRcPGS50E2vRBakPS/c AbzK0h0Rrl4w/aGlqkbztakeyr7lkyiXTbkAfOkYmVpYXG+m7XZSWdhjO4UDYExF5tfW hS/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678392357; 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=CjockYhWelpkA89u8rBpdCNAuPTh1O+y0bM/jqR+q/Q=; b=UwhnqufzI/UezwahwKufzFqwEytGF6QZITT0Lf7C77krwXhScVhGxOVJnZmdPTz+bC slmlNSBl/xBzxs47rIjKJt4MyC8AWIeGWNiU0HiOSuYv7sVzQB06tlf/y/irOPdKuQk5 vRdnvWx2ffj4wfHwZnlpWyOnHWjLvJ+uN/PbvVLfUToC9NJvQNqsI1hNlGWHtkC9f3lP 4JV8j0j+Eu5bQGW5QG+1OLAHKUeEkOk4jwH6nNi99DmeVEJBLkle8r95z6Uor+AdzIiE usGOiYsj0+/6riGNQp/dJgqcpw5DQU0+33vMCzXIIeo5mgoAlCMSkqQJzdCHMiFv0obp IhnA== X-Gm-Message-State: AO0yUKV1AuqvHlXmuliHdCt2rRTBLKROWArTClEYyY7XNTFLA+IARt78 aHCG9dZRhOm40RC0Hnc1MwyB3nRKVIaD+8Wk3UE= X-Received: by 2002:a17:90b:3ec7:b0:230:86de:f390 with SMTP id rm7-20020a17090b3ec700b0023086def390mr24619654pjb.42.1678392357682; Thu, 09 Mar 2023 12:05:57 -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:57 -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 06/91] target/mips: Drop tcg_temp_free from translate_addr_const.c Date: Thu, 9 Mar 2023 12:04:25 -0800 Message-Id: <20230309200550.3878088-7-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::102e; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102e.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/translate_addr_const.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/target/mips/tcg/translate_addr_const.c b/target/mips/tcg/translate_addr_const.c index 96f483418e..a510da406c 100644 --- a/target/mips/tcg/translate_addr_const.c +++ b/target/mips/tcg/translate_addr_const.c @@ -30,10 +30,6 @@ bool gen_lsa(DisasContext *ctx, int rd, int rt, int rs, int sa) tcg_gen_shli_tl(t0, t0, sa + 1); tcg_gen_add_tl(cpu_gpr[rd], t0, t1); tcg_gen_ext32s_tl(cpu_gpr[rd], cpu_gpr[rd]); - - tcg_temp_free(t1); - tcg_temp_free(t0); - return true; } @@ -54,8 +50,5 @@ bool gen_dlsa(DisasContext *ctx, int rd, int rt, int rs, int sa) gen_load_gpr(t1, rt); tcg_gen_shli_tl(t0, t0, sa + 1); tcg_gen_add_tl(cpu_gpr[rd], t0, t1); - tcg_temp_free(t1); - tcg_temp_free(t0); - return true; }