From patchwork Tue Mar 7 18:34:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 659829 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp2540918wrb; Tue, 7 Mar 2023 10:36:56 -0800 (PST) X-Google-Smtp-Source: AK7set/qP9fnASEuLGnDjUV31MS0XAjW8jRcMMGYgJJ8hIaLqkwi3Df+GSit/p6eomrqxyTWxx1w X-Received: by 2002:a05:622a:1101:b0:3b9:bc26:3349 with SMTP id e1-20020a05622a110100b003b9bc263349mr1927903qty.37.1678214216592; Tue, 07 Mar 2023 10:36:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678214216; cv=none; d=google.com; s=arc-20160816; b=Lqik1GzjIFjz+fAaEZjbOlCSyCcDIbLosrAdyyykIbHACMrPNMueSRzjNq0WGRm6ZK yQEIbs1W5/bM+KyG83tYEl4kkHTAvctygNmUjC/dwLKAn4v1JpqRgePc85qDm5Oc/oqC /t1Q6+IFGe/fCbqM9RJvhLQ02UjBdfgiXlK6JoqapU9r18xQswt92NuKJT7D9HSfPbJY OgsEMrfnDzIeriBQovzzWT9hlkGJg48jxYl6PcofbfJi/JPztE5ubmufT4G9op9luaP+ OS6zCrpNut/EXdDeXAwkP1I/kW+nZvVMZXIiZpQcLmOXcGpbN+9y0iHoFKsxsMh7KYjz K84g== 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=gzyJzA22uKXasXpBwzGrbKyMSGaVktQVzvYxO4YCmRY=; b=MKXTkPl4nI2DnVIimh1H6gQqm/Mn6dBgsPRq77R5GXBz4AQTfXQ5nZVvObiMaWvHwQ xEyAWhKY9MnrhyUAz1fG61YkhSAMAse5PcyagfcBsghd3rQlDqVEygP3G+VZF1UVkY1f pxQDKqVVORzDhFVVl++9owar7IL8mg7+Jfql8Nd2uphoSjsvsjoqktPKMRuct7v5X5dB DURRAzOFHqT2UT4QR67njKeWczNzolYZJGyrsWXPfnxrRv7maYRc5WHVm+ZP9IMDdQjv 1GeLLKxtClIRLL5aPpqkSE0qHNT8KcIiCVhLgEHNFIrwBHr9q1mH+On5A2p1ssH5TXNn +IAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hBlPTyq4; 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 c8-20020ac85a88000000b003b9b98b3c4dsi10016559qtc.200.2023.03.07.10.36.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Mar 2023 10:36:56 -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=hBlPTyq4; 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 1pZc9k-0003nh-CH; Tue, 07 Mar 2023 13:35:24 -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 1pZc9i-0003lT-90 for qemu-devel@nongnu.org; Tue, 07 Mar 2023 13:35:22 -0500 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZc9g-0007qE-MA for qemu-devel@nongnu.org; Tue, 07 Mar 2023 13:35:22 -0500 Received: by mail-pj1-x1033.google.com with SMTP id ce8-20020a17090aff0800b0023a61cff2c6so2129124pjb.0 for ; Tue, 07 Mar 2023 10:35:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678214119; 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=gzyJzA22uKXasXpBwzGrbKyMSGaVktQVzvYxO4YCmRY=; b=hBlPTyq4zC2+gmIlJj8HfszcqrVQS0oA6t2kSBsquddhHWQqqunJyRdR9IXx1RFhkR OJ55dV/CEGU+2uiOah+lu2+s7RMgb88sqxUanTOJTTdT9hrU8t90nDkfnJ3GaEJ9DWqv QW3aLdy4KCNKAGt8MqngOmLAJcwbCWwl3cQK/zIFCKCdIyVlM+DLRSTWETAAqVOGvSC9 lcOOgR0YkWmB7izep3ATWfdHyeo3wzEK7D9rFmBPvqWJPyyFHGymsizVWKKMRUB03eRI MvrSJVj5AaQi9oSuiE4W/NI4N6y4ScOVJd5ba29YDjeg83+4O8fGm+bDq56eYqbPXDCd 2MFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678214119; 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=gzyJzA22uKXasXpBwzGrbKyMSGaVktQVzvYxO4YCmRY=; b=XECSkm3W0jQtJGNMDPFNYyKQegX2POFGfa7OpQxXHMU7stjaP4cwwINBASbnBCVTGF hW4ZuaWDhKsKKZubEI+xWaIXuMFBLAbez7oTXn8JuZ/iw87uK61RyN8i/ekXYVkQH5pM d/xR2EHMRBGo2vmxzNrnFp3zfyaYpbrxUHPpzOhRYhbVqNB7w63twjqtPNmDznvnEX3H PV4KLiy/XDNqa7md2GleU/nfjBs7MUgMdq80vZ5C7mgCswNXH1CVTdK2tkbbpKixHs/S q5oJHzGRVu+HV+CUHmLPv29vmzKir4eQoj9DkslyAWa9g1aZjl9a9Zc5CjJ5ZCF3Dw6Y zSwQ== X-Gm-Message-State: AO0yUKVwZLOIpEGny1ae+1CtT1wJxHx8aiHQN5Jxqi9iv4hQf2ViTXpa W3952MXWUoK0jQWgF8hqKP+u0d6pw5YIA3CgrGk= X-Received: by 2002:a17:90b:4c85:b0:234:b23:ead3 with SMTP id my5-20020a17090b4c8500b002340b23ead3mr15739211pjb.3.1678214119429; Tue, 07 Mar 2023 10:35:19 -0800 (PST) Received: from stoup.. ([2602:ae:154a:9f01:b1e0:bfd9:8b1a:efeb]) by smtp.gmail.com with ESMTPSA id q1-20020a17090a1b0100b0022c0a05229fsm7757940pjq.41.2023.03.07.10.35.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 10:35:19 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Daniel Henrique Barboza , =?utf-8?q?C=C3=A9dric_L?= =?utf-8?q?e_Goater?= , David Gibson , Greg Kurz , qemu-ppc@nongnu.org Subject: [PATCH v2 19/25] target/ppc: Avoid tcg_const_* in power8-pmu-regs.c.inc Date: Tue, 7 Mar 2023 10:34:57 -0800 Message-Id: <20230307183503.2512684-20-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230307183503.2512684-1-richard.henderson@linaro.org> References: <20230307183503.2512684-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1033; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1033.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org All uses are strictly read-only. Signed-off-by: Richard Henderson Reviewed-by: Daniel Henrique Barboza Reviewed-by: Philippe Mathieu-Daudé --- Cc: Daniel Henrique Barboza Cc: Cédric Le Goater Cc: David Gibson Cc: Greg Kurz Cc: qemu-ppc@nongnu.org --- target/ppc/power8-pmu-regs.c.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/ppc/power8-pmu-regs.c.inc b/target/ppc/power8-pmu-regs.c.inc index 42f2cd04a1..d900e13cad 100644 --- a/target/ppc/power8-pmu-regs.c.inc +++ b/target/ppc/power8-pmu-regs.c.inc @@ -177,7 +177,7 @@ void spr_write_MMCR2_ureg(DisasContext *ctx, int sprn, int gprn) void spr_read_PMC(DisasContext *ctx, int gprn, int sprn) { - TCGv_i32 t_sprn = tcg_const_i32(sprn); + TCGv_i32 t_sprn = tcg_constant_i32(sprn); gen_icount_io_start(ctx); gen_helper_read_pmc(cpu_gpr[gprn], cpu_env, t_sprn); @@ -210,7 +210,7 @@ void spr_read_PMC56_ureg(DisasContext *ctx, int gprn, int sprn) void spr_write_PMC(DisasContext *ctx, int sprn, int gprn) { - TCGv_i32 t_sprn = tcg_const_i32(sprn); + TCGv_i32 t_sprn = tcg_constant_i32(sprn); gen_icount_io_start(ctx); gen_helper_store_pmc(cpu_env, t_sprn, cpu_gpr[gprn]);