From patchwork Thu Mar 9 20:05:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 661076 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp498237wrb; Thu, 9 Mar 2023 12:11:51 -0800 (PST) X-Google-Smtp-Source: AK7set9sLEmfpAthfAIIybRROXb2t455IQFNU7ruqQ8dupKb+d60wqb+i8MY76ruR2Rk2Q/T/wBf X-Received: by 2002:a05:600c:c87:b0:3e2:a8e:ba4a with SMTP id fj7-20020a05600c0c8700b003e20a8eba4amr462626wmb.21.1678392711004; Thu, 09 Mar 2023 12:11:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678392710; cv=none; d=google.com; s=arc-20160816; b=IsNRL67XLP8vqaD0nGOPNuG+Nqe4flWD0y1dv9Cc5TSGJUPpkNyB3HftNdmCUaYWTo mWQOxbcKSxUpqDh99KintlU8TRXObx2G4xRPVklBZm8h83JXM9ySeiQGvXujiD1plbf1 gMJuoHBw3Ta7CJd1pzq5Gd/KUN2sDWFFvYESUXCtok+LnNc0syxlBFslCqR7v2PvlvN0 dAhuvJ0NtJtbVfKEjJNB2wNSgebw/ot8PFAhjRVF/XWO0sLAQgKPY1jTkh5R4pdVvS+h 4txea3HbsENb290xTLSsg2mmDIyV/Azis1WeBf3QhqDT+rNds0jUaU0P964fOTG6HvB4 qalw== 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=Q3eB/kKfZL9pcS67BwAlUIjdCl9WdcWSOaNoguAhnXA=; b=ZynDqEYr9mjvPmMAq+twd471FjicUJWozCRf26xsS55/pIUZJg7uFLQ+vQfSGmBnU+ VfdvuqVtbfJrA/Xj+DrrXpLYlje4Uv77qi7fWcpn/sd0Xm7oCOHfUVqBistWuUGTLsQd Y5u1mDWLvQaCFy+jBwjghrdn1sGGwSH+mwK4BXBoZne4EkSR9U7KcR0YjE3bjlLMLKUx phydsyZ5YIF9vZ4bdUms2fhKZawvWtd/CHdaAqqDwEd2n015MXMA0f4vMVuIdD7O14y5 C/KoeeDIa1xAC3A2Uq8gKSQF7YeSBvANwpV1yOD4qILYt8nPuRnd3Qv961SDz9hw7+Vf pj5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=v3WzZksk; 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 r6-20020adfce86000000b002c5650f8e4dsi278616wrn.736.2023.03.09.12.11.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Mar 2023 12:11:50 -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=v3WzZksk; 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 1paMaC-00047C-Km; Thu, 09 Mar 2023 15:09: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 1paMaA-000454-EP for qemu-devel@nongnu.org; Thu, 09 Mar 2023 15:09:46 -0500 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1paMa8-0001XT-IN for qemu-devel@nongnu.org; Thu, 09 Mar 2023 15:09:46 -0500 Received: by mail-pj1-x1034.google.com with SMTP id fr5-20020a17090ae2c500b0023af8a036d2so6591823pjb.5 for ; Thu, 09 Mar 2023 12:09:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678392584; 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=Q3eB/kKfZL9pcS67BwAlUIjdCl9WdcWSOaNoguAhnXA=; b=v3WzZkskEXyGpC2V9Qf6k2cOaRHMPinvyOkZ6+P/ie+OXnaRjEJthJZS3DGLmnEiCe w4SRPVOAzuJraTX0ELOyv8Vcg81fnwAFsUTQ/fUhkxCZitSclMLDkvdx5npHTAFKxALj 0DAZAGVKVLeO5qfQBoUBLvif+i8JhsukVdKQOWzXFlOLuqi0dThqAc1EPKJRoqL0IGY1 KRbdP9BlkS3xKyoP0c3Cusd45+DOJOWtgm61LfsIjeOWARLpYt6vgsQZQyfqXKrvWMmL zKvqDEjA2B/LnijDsiKNXmULBiW1S6LLo2vIUqncFWvb0quBDD3ytObRYUN0T2sLY59h Cwwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678392584; 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=Q3eB/kKfZL9pcS67BwAlUIjdCl9WdcWSOaNoguAhnXA=; b=mIBIuBYInk7wf5RFnb2Wd1XgGZuKd3lHC5Lxp94SHIfSZL3aHd7acc3F8rs3g66HxT YiSAz/KHbhZznKQVs2uWlRQdgRYn92+qUYL0ho2lMp98J8BBTiFLmrw5tzFahkhODRcV 3i7r8SOKD8sVeyPQBZ7iP1TvYp3QPIGR1MmFr2fCgkdFVTkd03RMg9PxC4RCn0aL3Wm3 JxCOA8fNkb9sn/fWcm2Lh/7GrJabx3taH7mmx7Nu6fvOZSrVOSzDP+aQKni+L+pk/5U0 2pz0PsP9H2NBDQdN/CnGnS46GpH99G/uDZaq6xmWVWI23m1ORv/qd0ySnA8GbCAHcGG/ ZSiA== X-Gm-Message-State: AO0yUKWADs+wkkjlCYlUxcxLL+pFdEVgnJ8qIWDmJiW/ABToS3uIsHvS CWK1sNbaCIwLy3y3qBHTV7/f9T7bYBN9kBizXBQ= X-Received: by 2002:a17:903:1251:b0:19e:d60a:e9e with SMTP id u17-20020a170903125100b0019ed60a0e9emr13502596plh.42.1678392583750; Thu, 09 Mar 2023 12:09:43 -0800 (PST) Received: from stoup.. ([2602:ae:154a:9f01:bf7f:79a0:a976:bdaf]) by smtp.gmail.com with ESMTPSA id c2-20020a170902aa4200b001991e4e0bdcsm43797plr.233.2023.03.09.12.09.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 12:09:43 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL v2 58/91] target/s390x: Avoid tcg_const_i64 Date: Thu, 9 Mar 2023 12:05:17 -0800 Message-Id: <20230309200550.3878088-59-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230309200550.3878088-1-richard.henderson@linaro.org> References: <20230309200550.3878088-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1034.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 uses are strictly read-only. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/s390x/tcg/translate.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/target/s390x/tcg/translate.c b/target/s390x/tcg/translate.c index 7969051ce9..32d61fc40d 100644 --- a/target/s390x/tcg/translate.c +++ b/target/s390x/tcg/translate.c @@ -4857,13 +4857,13 @@ static DisasJumpType op_xi(DisasContext *s, DisasOps *o) static DisasJumpType op_zero(DisasContext *s, DisasOps *o) { - o->out = tcg_const_i64(0); + o->out = tcg_constant_i64(0); return DISAS_NEXT; } static DisasJumpType op_zero2(DisasContext *s, DisasOps *o) { - o->out = tcg_const_i64(0); + o->out = tcg_constant_i64(0); o->out2 = o->out; return DISAS_NEXT; } @@ -5762,7 +5762,7 @@ static void in2_sh(DisasContext *s, DisasOps *o) int d2 = get_field(s, d2); if (b2 == 0) { - o->in2 = tcg_const_i64(d2 & 0x3f); + o->in2 = tcg_constant_i64(d2 & 0x3f); } else { o->in2 = get_address(s, 0, b2, d2); tcg_gen_andi_i64(o->in2, o->in2, 0x3f); @@ -5868,46 +5868,46 @@ static void in2_mri2_64(DisasContext *s, DisasOps *o) static void in2_i2(DisasContext *s, DisasOps *o) { - o->in2 = tcg_const_i64(get_field(s, i2)); + o->in2 = tcg_constant_i64(get_field(s, i2)); } #define SPEC_in2_i2 0 static void in2_i2_8u(DisasContext *s, DisasOps *o) { - o->in2 = tcg_const_i64((uint8_t)get_field(s, i2)); + o->in2 = tcg_constant_i64((uint8_t)get_field(s, i2)); } #define SPEC_in2_i2_8u 0 static void in2_i2_16u(DisasContext *s, DisasOps *o) { - o->in2 = tcg_const_i64((uint16_t)get_field(s, i2)); + o->in2 = tcg_constant_i64((uint16_t)get_field(s, i2)); } #define SPEC_in2_i2_16u 0 static void in2_i2_32u(DisasContext *s, DisasOps *o) { - o->in2 = tcg_const_i64((uint32_t)get_field(s, i2)); + o->in2 = tcg_constant_i64((uint32_t)get_field(s, i2)); } #define SPEC_in2_i2_32u 0 static void in2_i2_16u_shl(DisasContext *s, DisasOps *o) { uint64_t i2 = (uint16_t)get_field(s, i2); - o->in2 = tcg_const_i64(i2 << s->insn->data); + o->in2 = tcg_constant_i64(i2 << s->insn->data); } #define SPEC_in2_i2_16u_shl 0 static void in2_i2_32u_shl(DisasContext *s, DisasOps *o) { uint64_t i2 = (uint32_t)get_field(s, i2); - o->in2 = tcg_const_i64(i2 << s->insn->data); + o->in2 = tcg_constant_i64(i2 << s->insn->data); } #define SPEC_in2_i2_32u_shl 0 #ifndef CONFIG_USER_ONLY static void in2_insn(DisasContext *s, DisasOps *o) { - o->in2 = tcg_const_i64(s->fields.raw_insn); + o->in2 = tcg_constant_i64(s->fields.raw_insn); } #define SPEC_in2_insn 0 #endif