Message ID | 20230227054233.390271-33-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp2183961wrb; Sun, 26 Feb 2023 21:48:12 -0800 (PST) X-Google-Smtp-Source: AK7set+xWeu18jpCxc1/zGe7x0V/Pl12oVS5lDgB65lIoNdeNutU3g+68XeBThZn0FuSqQjnGvHH X-Received: by 2002:a05:6214:508b:b0:56f:52ba:ccf7 with SMTP id kk11-20020a056214508b00b0056f52baccf7mr39527998qvb.14.1677476892102; Sun, 26 Feb 2023 21:48:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677476892; cv=none; d=google.com; s=arc-20160816; b=aDaGxw9GccOkTwj8ASYv7U7pE3dGH4JF9hwHNvWPi9dL3Psopn7w+qvZGHj1QqDPZ2 1ud3Q4Hsyl0831B0qIi8mr4Vrgk5cNuKQWqiKJQQjUDzLr+mZmN3Q/UNhU9EKKzMw9Wy f0MqKeg0lbCYx20Lu4Y3hVgJ8fsmj8VM8HMfq2/IZVmu2d2xabh++0oWsS/HGf8ATmc7 Pi16nhwTKIMgsnf2UTLVEx6arXCvmPnoPgxOSPaBg/Q7oBqHnR5M+1wVsP8xoJFIOQAk 5KYTj5nnWIJh1C32slNZ+tQHDSUbGuQEAH1AanxAiGLVQRTkm0LVhPb2bpKg3PEhc0LC vITA== 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=jL4pgNANfuKMXeC5MxlI1VBXfKn/ZH3qWozXHmWvjwc=; b=w+1xVMJSwl2Ygo0xLMHugU8fE88OxA8yQie+FUARZMevMVrqCw2WTq6MKItKJNdUzT Jt02h8OUPAVQdvZGbIGDcpgBUEtghnT2HL/VRwD6SNfwGjABF8i+EHxdts1UhU2xrq0m GPJROxbZwh/2ND3UjA1BXB8iSoG4E1hbd6p/tek08FiItDRBAzfFR+EryztNy7mZukzA kuYgefdyUndDVp9IXT3V+X3ylQ9lV6iQlrEKpLi13jf0XQH/aUGM3jbTLkzX3GRN5JqV 78Gtxj02m5L9rXKMBZZ/yOTrdhBqx4Yb9t+4yBS5PvWKO2G962lLsoB/v3RJwfRq2Ozp aLHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AubVIYB8; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id l6-20020a0ce086000000b0056ea7cac144si5606412qvk.376.2023.02.26.21.48.11 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 26 Feb 2023 21:48:12 -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=AubVIYB8; 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 <qemu-devel-bounces@nongnu.org>) id 1pWWJd-0008TQ-Be; Mon, 27 Feb 2023 00:44:49 -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 <richard.henderson@linaro.org>) id 1pWWJG-0006sz-KP for qemu-devel@nongnu.org; Mon, 27 Feb 2023 00:44:26 -0500 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1pWWJ6-0005TW-TO for qemu-devel@nongnu.org; Mon, 27 Feb 2023 00:44:26 -0500 Received: by mail-pf1-x42b.google.com with SMTP id ce7so2787804pfb.9 for <qemu-devel@nongnu.org>; Sun, 26 Feb 2023 21:44:09 -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=jL4pgNANfuKMXeC5MxlI1VBXfKn/ZH3qWozXHmWvjwc=; b=AubVIYB8izX+nN3mZvh5FVQkgK91M8d39Z1G9nsPEiFGm1y+vMAESoAbDzjw9t5jVQ ecaWJLHTWVcI3SpVF4wEVUlyGanlTljml1WjQkyPD2h6yo8aySjdyZ8FHvud1HGPOPG0 8qA5jmGrmGVY2xbjHJ80vyuaUgwGfbV3FHVLlkmN+blvwxAokV2lWAW3qoJvCzwAW1H2 m2pBGszC2miouWoxhuL6kPy0/jFMdMjPqe0qiXrmm+tXRrXhVGwM6aPr3VSlK0eiNk7s 22f7J5ZWnZOoRzHPvaOjMEK3X9A70SO9AEMV65svS7rALt7RyDcQ7BWeHhYtiAKE9eWd Hryw== 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=jL4pgNANfuKMXeC5MxlI1VBXfKn/ZH3qWozXHmWvjwc=; b=uWu/+zNGWXpXGJb2/4nRuWpnnrBnAw359mrcwzBiHBJi4Nqhx2cvJNIzdsG8sDitPK 8bRHEM5EzZEfc8fC0Tns9TwDEKOIHJgNhNyGC2urO0+hsciQLe9z/fDPGgxd/oBkWwmb dviq+Q19ACE6avoWAe6+Hpnd8DS6kgPsN/kw/Qw+qGhRLGQ/JgfozoBuw5NkqGVKTdXW I4BxQU5nf4+S+kGVJr7uXE1FK6MEZ8gdwBx80/U2+C7DKqifgzwmt+LdRtKkKjn44oTI fqq+x/W36HA+056Nsya71CUeX6ti4wtHpn8+iUmojfwcJ73WH6dMf9VcMiYtueT1If+I McWA== X-Gm-Message-State: AO0yUKUft1C3fVV+sKXEZX7Nn6XzZtajur13g+Vs0i8kkBO2HzTNe18E 68EFfVEVxHe1K94WZsCivHSi64+dCr2vdpj1ems= X-Received: by 2002:aa7:9dc7:0:b0:5a8:5424:d138 with SMTP id g7-20020aa79dc7000000b005a85424d138mr22258676pfq.16.1677476648662; Sun, 26 Feb 2023 21:44:08 -0800 (PST) Received: from stoup.. (rrcs-173-198-77-218.west.biz.rr.com. [173.198.77.218]) by smtp.gmail.com with ESMTPSA id d10-20020aa7868a000000b005cdc64a287dsm3317137pfo.115.2023.02.26.21.44.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Feb 2023 21:44:08 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, qemu-s390x@nongnu.org, jcmvbkbc@gmail.com, kbastian@mail.uni-paderborn.de, ysato@users.sourceforge.jp, gaosong@loongson.cn, jiaxun.yang@flygoat.com, tsimpson@quicinc.com, ale@rev.ng, mrolnik@gmail.com, edgar.iglesias@gmail.com Subject: [PATCH 32/70] target/mips: Avoid tcg_const_tl in gen_r6_ld Date: Sun, 26 Feb 2023 19:41:55 -1000 Message-Id: <20230227054233.390271-33-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230227054233.390271-1-richard.henderson@linaro.org> References: <20230227054233.390271-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::42b; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42b.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
tcg: Remove tcg_const_*
|
expand
|
On 27/2/23 06:41, Richard Henderson wrote: > Allocate a separate temp for modification. > > Signed-off-by: Richard Henderson <richard.henderson@linaro.org> > --- > target/mips/tcg/translate.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
diff --git a/target/mips/tcg/translate.c b/target/mips/tcg/translate.c index 5c5660da5a..bec0a26c83 100644 --- a/target/mips/tcg/translate.c +++ b/target/mips/tcg/translate.c @@ -2964,8 +2964,8 @@ static void gen_HILO(DisasContext *ctx, uint32_t opc, int acc, int reg) static inline void gen_r6_ld(target_long addr, int reg, int memidx, MemOp memop) { - TCGv t0 = tcg_const_tl(addr); - tcg_gen_qemu_ld_tl(t0, t0, memidx, memop); + TCGv t0 = tcg_temp_new(); + tcg_gen_qemu_ld_tl(t0, tcg_constant_tl(addr), memidx, memop); gen_store_gpr(t0, reg); }
Allocate a separate temp for modification. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- target/mips/tcg/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)