From patchwork Thu Feb 23 18:04:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 1747065 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=fFtflJ6/; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PN1Bv3DTQz23yr for ; Fri, 24 Feb 2023 05:04:55 +1100 (AEDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVFxB-0004M9-Tj; Thu, 23 Feb 2023 13:04:25 -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 1pVFx9-0004LS-UR for qemu-devel@nongnu.org; Thu, 23 Feb 2023 13:04:23 -0500 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVFx8-0003jB-Fz for qemu-devel@nongnu.org; Thu, 23 Feb 2023 13:04:23 -0500 Received: by mail-wr1-x42f.google.com with SMTP id r7so11216437wrz.6 for ; Thu, 23 Feb 2023 10:04:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=PLLO+81M+6ty6hlvULqERzdS4cWY4gmEFmkpDmLu/ig=; b=fFtflJ6/P3wwPKXknD/aqwa2tY/MMqarVtT4Uiy5DOxxX/DSFbhWSNrQ65smCFt2S0 xx6gtQCWL08oA4KHYbylo8rPWJhg36Zx9p0g6aiL6tr1B8NLJYaMRZUxNsn1ctQidKEO g2piG5W8IO2cktHdu75X8krMhX4LwKAIhvFoQUF+f7Btkq8tUgekIgwY0OoeFITPFW0n 2h6b+tEJ4vDdDmOIg3drGHzkeTVyrsKV5gozrQKstfp72fRCJS/yH7eqwQ4sBrM18V68 IxaZ2CZkm2zZTTc5fE3aeFcN8JF2w+A8VcKQFwGNhaEZjYgRQWM1bGhCl2kmVa/pUMeA GAoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=PLLO+81M+6ty6hlvULqERzdS4cWY4gmEFmkpDmLu/ig=; b=KRanS5IRytdjtFMo26UsehJiVVkR/bz7Pb1bMcO9jvybMqI07isJzKqKwSbVPlXEH8 7MC+V7CkfDE31RQTv4l3rCTJPijTgkfyecD98gQoIftVJflYYawkY80ERMMPsEGShB2Q q65/bHTiMSr6rAB5Vd85RLc+C3XvqYJxvzG0W6shpcV9tUrXS6s9+/5ih9qiJQsIITap l8GtFhiddjyJzLkpaIytNtPzsqxr8V2xGSQKW4we7qqPnIJRY2Ppq9O0RaGPrkr/2xdW xmHKXSj4Y0Bb9Xc7p1Vvf7TjOU7iuiigiPNf/kE05aHq1hWgSKlPoecCum38M1MWXUAb hnJQ== X-Gm-Message-State: AO0yUKVHROAJlXHzL/0e/Z4InJtKGdq7+xThTZhawLgINFLQWb/2EEiY j+yruiT8wvKe2YToYDHTjvtLXqib6WJXbfzz X-Google-Smtp-Source: AK7set+gCxGrIvi1ARP+H3Ra1UHhceXh/I/t6oZxHQ45Hl6tfF306ZKp8ZXv2/bP7Hz7FRldt0Swbw== X-Received: by 2002:a5d:67c6:0:b0:2c6:45b8:ff15 with SMTP id n6-20020a5d67c6000000b002c645b8ff15mr12520805wrw.35.1677175460923; Thu, 23 Feb 2023 10:04:20 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id a9-20020a5d5709000000b002be099f78c0sm11224248wrv.69.2023.02.23.10.04.18 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 23 Feb 2023 10:04:20 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Mark Cave-Ayland , Artyom Tarasenko , Ilya Leoshkevich , Anton Johansson , Richard Henderson , qemu-s390x@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 2/3] target/alpha: Replace TCGv by TCGv_i64 in gen_cpy_mask() Date: Thu, 23 Feb 2023 19:04:04 +0100 Message-Id: <20230223180405.31836-3-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230223180405.31836-1-philmd@linaro.org> References: <20230223180405.31836-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=philmd@linaro.org; helo=mail-wr1-x42f.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=unavailable 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Although TCGv is defined as TCGv_i64 on alpha, make it clear tcg_temp_new_i64() returns a TCGv_i64. Free calling tcg_temp_free_i64(). Suggested-by: Ilya Leoshkevich Signed-off-by: Philippe Mathieu-Daudé --- target/alpha/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/alpha/translate.c b/target/alpha/translate.c index f9bcdeb717..06894094b7 100644 --- a/target/alpha/translate.c +++ b/target/alpha/translate.c @@ -798,7 +798,7 @@ IEEE_INTCVT(cvtqt) static void gen_cpy_mask(TCGv vc, TCGv va, TCGv vb, bool inv_a, uint64_t mask) { TCGv vmask = tcg_constant_i64(mask); - TCGv tmp = tcg_temp_new_i64(); + TCGv_i64 tmp = tcg_temp_new_i64(); if (inv_a) { tcg_gen_andc_i64(tmp, vmask, va); @@ -809,7 +809,7 @@ static void gen_cpy_mask(TCGv vc, TCGv va, TCGv vb, bool inv_a, uint64_t mask) tcg_gen_andc_i64(vc, vb, vmask); tcg_gen_or_i64(vc, vc, tmp); - tcg_temp_free(tmp); + tcg_temp_free_i64(tmp); } static void gen_ieee_arith3(DisasContext *ctx,