From patchwork Mon Feb 27 05:42:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 656877 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp2190695wrb; Sun, 26 Feb 2023 22:11:14 -0800 (PST) X-Google-Smtp-Source: AK7set+nNzm9R5IJybSXeT+ywKBncON48FvVumU9RtF1wllGHZLKqAYjHf3gCK3OP1yGzbn8P2Sf X-Received: by 2002:a05:622a:1104:b0:3bf:a1aa:25a0 with SMTP id e4-20020a05622a110400b003bfa1aa25a0mr40171713qty.17.1677478274359; Sun, 26 Feb 2023 22:11:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677478274; cv=none; d=google.com; s=arc-20160816; b=mIYKmsPpblcOPd1CuH8HljBs9Fks71FGNk5McWfsvoonn9C5LWsijCAaeBB2xJdtkT htAnNe0KqWblbKpsEhae6GErXTiatl4ss6DQ459OD8lsQsRXdEleOhJndbiyinNBjZ8K IYLBDUGdmnV0/yo7M1mQ5dpdsyt7LzPYewN2iIjs0dhtGXgUvlrt/74JN57ADWREecYB R6oAR+sEjig4wpwTCMeGV/Z54yJL6PSVCyKYXSubJo0jenEmG0v3bAKcjQFuVR1dH1wu KnPEr87+kyot844Mq8jsBU3AyxKWYHgPIe3//9kK+Hh9O5o5CQeVbh7rU2t1Y5XGPMW5 DgaA== 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=fXCMxBWQmLHmmqt1iKjCO3RiwtMJobhj4kTdr9q0fJo=; b=lCZudMQTDx+MacxII7NXk3gDFDY9bAxS3pjTwTFPlDvDz52NzARaMX9yz6ydxCyajP MFW3RfjhYdxy41zkKhmr7EY8wkjaZbsfLSi7hs5tmoRj4Si716cIclBFjV5O4BSBQXKa 1ZLqsWwYtijgrTPE3B7G3fKt6rWMQOe1vCwYrPMIjg6ryUMF8qjIMEw8rxahRzxHIBh/ ucx9r/AIVwvlNn2KBuX5rLmQIz+0Dtz8EconR1QNxcLrsnGAE3jwaq/2Xb1FaKvv+E88 /RZbpxjC00XAE1WsxLq66O5sJzeIx5mcA9MrWPpX7fU9R8dlSSt0+g6pV9rErkoez9Bx LM9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Iytrot8C; 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 c66-20020a379a45000000b00731860c3ccbsi5044148qke.355.2023.02.26.22.11.14 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 26 Feb 2023 22:11:14 -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=Iytrot8C; 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 1pWWJc-0008QE-Mo; Mon, 27 Feb 2023 00:44:48 -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 1pWWJM-00077T-Ky for qemu-devel@nongnu.org; Mon, 27 Feb 2023 00:44:32 -0500 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWWJC-0005Ro-DQ for qemu-devel@nongnu.org; Mon, 27 Feb 2023 00:44:30 -0500 Received: by mail-pf1-x42a.google.com with SMTP id z11so2807094pfh.4 for ; Sun, 26 Feb 2023 21:44:21 -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=fXCMxBWQmLHmmqt1iKjCO3RiwtMJobhj4kTdr9q0fJo=; b=Iytrot8CZ+x91sOgJ81SvVKzTnlb4e5C49eQ32YhiCL1b6jIwY6hVlmR5fRsxMR+1c QOq1fBVAA9EgKhCd516whjlNxq7oRQ3RMhA7FVVCcfY+F1vOiMXEDHTPY6q7hn+bMR8X wNIbm+UDhTavVxC8EBJT9L3Sk+YtgqQD4PeABJUnuPO6lYSgOT1nAMwpFEj4gAFZEN2r wc4pxQ6lgyxvzTfj0mh0FySJt8/vbIdh/pYRVx9Lm18lYUdP02stRIJINu5UE36T3lGv l9RnVpbyxcr9yv5yl2j6dPLjqyKBk+Z0DSuqdQC7YFUzLgciBo8PCSsPY0Io9+Q72Oyy YZZQ== 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=fXCMxBWQmLHmmqt1iKjCO3RiwtMJobhj4kTdr9q0fJo=; b=blDbfVNAni/oxgLx+SK+Ysd6KSHff1l0zMx+OvvHF/tZp731RhvOjhwQ/Ljvmo0Zps K4GKaALgdTX0hLwAneRC/Zod7KI0Lab6RjShjGp8limCBvMLgG/VpCwKdVquatXVLh1E S66TGZXx0uTMOFCxHooDwT8ItPdUaD8PJw47zGjICbzbMBw0wh1Al5nSja5EO2P8BAvt ccUrPLCMnBvw7ZDmc/Piu0ZdDplZ+t+6BYw0h82RpTqkOHtRcQbF+EGaolo0et+h2bUk Uy3adKT8qjuU0eh3NA2TbloYjUQBNWM0NDJmVhiQsE7V0eC1BJasDPXUou3r0mg4CViq wjkA== X-Gm-Message-State: AO0yUKUgMRbzKspTkduiLYO1PICmATBjbGTZkWiL7Dx8RgmICJyZdjkC USOCzNk2vE4McJav/1B+FdHcF/f8lmr6bMuvEGY= X-Received: by 2002:aa7:9597:0:b0:5a8:4b27:5db2 with SMTP id z23-20020aa79597000000b005a84b275db2mr20400884pfj.1.1677476661484; Sun, 26 Feb 2023 21:44:21 -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.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Feb 2023 21:44:21 -0800 (PST) From: Richard Henderson 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 37/70] target/ppc: Avoid tcg_const_* in vmx-impl.c.inc Date: Sun, 26 Feb 2023 19:42:00 -1000 Message-Id: <20230227054233.390271-38-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 Received-SPF: pass client-ip=2607:f8b0:4864:20::42a; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42a.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 All remaining uses are strictly read-only. Signed-off-by: Richard Henderson --- target/ppc/translate/vmx-impl.c.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/target/ppc/translate/vmx-impl.c.inc b/target/ppc/translate/vmx-impl.c.inc index ca27c11d87..112233b541 100644 --- a/target/ppc/translate/vmx-impl.c.inc +++ b/target/ppc/translate/vmx-impl.c.inc @@ -1624,7 +1624,7 @@ static void glue(gen_, name)(DisasContext *ctx) \ gen_exception(ctx, POWERPC_EXCP_VPU); \ return; \ } \ - uimm = tcg_const_i32(UIMM5(ctx->opcode)); \ + uimm = tcg_constant_i32(UIMM5(ctx->opcode)); \ rb = gen_avr_ptr(rB(ctx->opcode)); \ rd = gen_avr_ptr(rD(ctx->opcode)); \ gen_helper_##name(cpu_env, rd, rb, uimm); \ @@ -1965,7 +1965,7 @@ static void gen_vsldoi(DisasContext *ctx) ra = gen_avr_ptr(rA(ctx->opcode)); rb = gen_avr_ptr(rB(ctx->opcode)); rd = gen_avr_ptr(rD(ctx->opcode)); - sh = tcg_const_i32(VSH(ctx->opcode)); + sh = tcg_constant_i32(VSH(ctx->opcode)); gen_helper_vsldoi(rd, ra, rb, sh); } @@ -2575,7 +2575,7 @@ static void gen_##op(DisasContext *ctx) \ rb = gen_avr_ptr(rB(ctx->opcode)); \ rd = gen_avr_ptr(rD(ctx->opcode)); \ \ - ps = tcg_const_i32((ctx->opcode & 0x200) != 0); \ + ps = tcg_constant_i32((ctx->opcode & 0x200) != 0); \ \ gen_helper_##op(cpu_crf[6], rd, ra, rb, ps); \ } @@ -2594,7 +2594,7 @@ static void gen_##op(DisasContext *ctx) \ rb = gen_avr_ptr(rB(ctx->opcode)); \ rd = gen_avr_ptr(rD(ctx->opcode)); \ \ - ps = tcg_const_i32((ctx->opcode & 0x200) != 0); \ + ps = tcg_constant_i32((ctx->opcode & 0x200) != 0); \ \ gen_helper_##op(cpu_crf[6], rd, rb, ps); \ } @@ -2726,7 +2726,7 @@ static void gen_##op(DisasContext *ctx) \ } \ ra = gen_avr_ptr(rA(ctx->opcode)); \ rd = gen_avr_ptr(rD(ctx->opcode)); \ - st_six = tcg_const_i32(rB(ctx->opcode)); \ + st_six = tcg_constant_i32(rB(ctx->opcode)); \ gen_helper_##op(rd, ra, st_six); \ }