Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DA1ADC4338F for ; Sun, 8 Aug 2021 16:09:56 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3E06B60FF2 for ; Sun, 8 Aug 2021 16:09:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3E06B60FF2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amsat.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:38300 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mClN5-000705-8Y for qemu-devel@archiver.kernel.org; Sun, 08 Aug 2021 12:09:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41252) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mClM6-00056I-8X for qemu-devel@nongnu.org; Sun, 08 Aug 2021 12:08:54 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:46922) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mClM4-0001BS-Uz for qemu-devel@nongnu.org; Sun, 08 Aug 2021 12:08:54 -0400 Received: by mail-wr1-x42a.google.com with SMTP id f5so2249109wrm.13 for ; Sun, 08 Aug 2021 09:08:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5uZT3MfT4w+FruUmTHAg3owA862EljxsHIzMrbqXg/I=; b=Zj7InsFkucJ5QFoySMrm2oxRdpM57iig+G+QZ/fPkhB4p5K9rYYLQX9pt0rWk9cPvs IxEzuyM61x7GU65OPDqlK56lnt9m4TIiGTE6sn6+LOAyV07ZgYyTgTbZu+8jbNpFfLkO UB/ofXtZ/XvpNo/1MTq46HGm5sRWkhdCKCB6BhsbteiDwVbXJssxsGZ8fVf+lF+s1Skc wKyXBFqD2ioBcCJJNOziOAdddaJ1RHD6JWZO942cb2QQk3QPEpaKOv2hb170mt/1dLTW ozn01vzx6w+CCBpKet/zrXbDDtuu2hLn2HCLo/qosYDMJBdoeyI8ON2+gqG1+UlM3LyB Xdog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=5uZT3MfT4w+FruUmTHAg3owA862EljxsHIzMrbqXg/I=; b=WOYtrnlLpSzb4zZPF1/oeOLw1We8UOvicaREI2dPkYC5Oq7h1mcOnXOqaMD27byTKJ R5RKFFEjikSEdtFSwU2VqiiteQP+3H7w1qXGK17iav5HhKN81UvEN/Lo68E9/TmHlSP6 ioHeP2+37wDyuyU2XhG6aE+habCiHdfznFLWuDokhI0LMvObM/HyT+lsdPwEv37yXmW0 CdeOCo9phRY0ArRfJjqRru7iz4VhVcB3/9mlqe49vw0cy/v31ttl58IyG5swiiLK6dsw Sdd6hnhnFcgdvA95nGSQf5dhKI+NASPKZ0oWrYXp2nrO6YUh06JpdhH7uOZMSBgxXuJ5 1n5w== X-Gm-Message-State: AOAM531X+pS/gxC817kfWqEOGU4rZcpKuxmlFjEb939JHe3qzBLbheiT 2imkTpjaV0b6isU6MR5lfLrxjlnDEDs= X-Google-Smtp-Source: ABdhPJx336iImZfrJYtLadyFUvNSZHms55qM/fyH4NaSG//YvONPi0D6btTaJdkg6KP0y/BzgLE2LQ== X-Received: by 2002:adf:d1e4:: with SMTP id g4mr20104909wrd.371.1628438930985; Sun, 08 Aug 2021 09:08:50 -0700 (PDT) Received: from x1w.. (163.red-83-52-55.dynamicip.rima-tde.net. [83.52.55.163]) by smtp.gmail.com with ESMTPSA id c1sm1597114wmp.7.2021.08.08.09.08.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Aug 2021 09:08:50 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH-for-6.2 1/2] target/mips/tx79: Use tcg_constant_tl() Date: Sun, 8 Aug 2021 18:08:42 +0200 Message-Id: <20210808160843.84957-2-f4bug@amsat.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210808160843.84957-1-f4bug@amsat.org> References: <20210808160843.84957-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-x42a.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Aleksandar Rikalo , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aurelien Jarno Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Replace uses of tcg_const_tl() with the allocate and free close together. Signed-off-by: Philippe Mathieu-Daudé --- target/mips/tcg/tx79_translate.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/target/mips/tcg/tx79_translate.c b/target/mips/tcg/tx79_translate.c index 6d51fe17c1a..0dacdf2a619 100644 --- a/target/mips/tcg/tx79_translate.c +++ b/target/mips/tcg/tx79_translate.c @@ -247,8 +247,8 @@ static bool trans_parallel_compare(DisasContext *ctx, arg_r *a, return true; } - c0 = tcg_const_tl(0); - c1 = tcg_const_tl(0xffffffff); + c0 = tcg_constant_tl(0); + c1 = tcg_constant_tl(0xffffffff); ax = tcg_temp_new_i64(); bx = tcg_temp_new_i64(); t0 = tcg_temp_new_i64(); @@ -279,8 +279,6 @@ static bool trans_parallel_compare(DisasContext *ctx, arg_r *a, tcg_temp_free(t0); tcg_temp_free(bx); tcg_temp_free(ax); - tcg_temp_free(c1); - tcg_temp_free(c0); return true; } -- 2.31.1