Message ID | 20230227054233.390271-68-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 m6csp2230358wrb; Mon, 27 Feb 2023 00:20:23 -0800 (PST) X-Google-Smtp-Source: AK7set/9ToVOvigwDgqiC8YZdZvktL3Af1iNS4UY7ao31Q8IQOiJGIMTjXoBeBKRsYy5EgLDQkBM X-Received: by 2002:ad4:4ee4:0:b0:56e:9986:4fa9 with SMTP id dv4-20020ad44ee4000000b0056e99864fa9mr43895474qvb.7.1677486023623; Mon, 27 Feb 2023 00:20:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677486023; cv=none; d=google.com; s=arc-20160816; b=fwHqAa1wDFS0b56emxFuN9rnquCRb6uGOc1DxYu+S44f/Gun6dHXIQoFk2dbgVHZHg ihIe2OVlsamOUJBigD+LEiIh0gBOK+pF1p694EqL4Z642QSaUIH/TmP+kc5J7o9p88QH IQqXjRL/edR/aSJyr3oaGpN5pxmnbdv21xnLnOdbY+RIE2IU4VzY1p7C4n6yvjoX73cA CnA460TMZ/EYIgD+3t9vKmpx+42vCtN+AF3UcLPYPSNiRsyf35o3QgKEQz6dFDOI4AiL 7PYdWMF0SBFxI+ZMuDRXEpO8p/EHRlgdMuENZyJi6Nf2xF6bBVdNV5fNapJ2EHM0Wh21 vXqg== 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=Htwm+E7Ej5o1YDA8ZJwARbX/GtYPS7IcYCg+lmcAy3E=; b=qIgheEeNCkKKegVQW62knIdMGH6zR9GEuWrODV0aVPSKRCYgPopWh4BSXtnq47mB5n noFh4idUS+w+iA54CBM9cuizkpeYsdIhxpXSWYsH2sdSAQSQNhxmuXb8BG+3/ztE0X9l SvGyzldFJI1HNUVVTEFuanvCHxsI7iYptii8uARxIIE9+6tRyDfkuXsmMiL8fAUg8k3v FfbQDihbCAjhNehDACzYOPTzFD8FnW2YUA+c1HgF+RDEXYRu3xoewRxebNHjYjA3tLZk nRPJ2KVHdDH2jJ9y+BhRByeRJk/oZ+FiOmitA8hxianTGxTLSyFxSxKCwZcZzFPI82W0 Tfyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cWwWaOTH; 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 v2-20020a05620a0f0200b007428b22c9d9si5602340qkl.397.2023.02.27.00.20.23 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Feb 2023 00:20:23 -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=cWwWaOTH; 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 1pWWOa-000244-6V; Mon, 27 Feb 2023 00:49:56 -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 1pWWNc-0005XU-EW for qemu-devel@nongnu.org; Mon, 27 Feb 2023 00:48:56 -0500 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]) 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 1pWWNa-000718-Cu for qemu-devel@nongnu.org; Mon, 27 Feb 2023 00:48:55 -0500 Received: by mail-pj1-x102b.google.com with SMTP id q31-20020a17090a17a200b0023750b69614so5041833pja.5 for <qemu-devel@nongnu.org>; Sun, 26 Feb 2023 21:48:42 -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=Htwm+E7Ej5o1YDA8ZJwARbX/GtYPS7IcYCg+lmcAy3E=; b=cWwWaOTHYxiB+KCaN2JEQ0ZC3ql7d3B85FqiSF9BuibjXV+Ju43HfNqGM2pXZa3rw7 WO3lyp5iktpMdSznSB0Lw1aWe09czKEUeYLayyUr+3g0tVSpn2Sr5tzoupcJHJ13chGM S8gqw5zieVM3wE5O13F5vxihvRQEDwvb+3sdiasrUxSdIiX1WffQcgTUEir4NvqkNBMS rCx/tKznFURA0OMUVhxs//Ua4Epw3SbeepGUYxRp3e6AGXB2yIhh4VVsMvUciD9obiV1 Qlw7MV/qzty8/dQiMM9jC0n95K6e//8PQ7UmNwK8usIw+ebhnaG80XNYy+cOy1HyiBM6 Mb1g== 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=Htwm+E7Ej5o1YDA8ZJwARbX/GtYPS7IcYCg+lmcAy3E=; b=TV414E/Qrefotc/QZWUMb/EsqbzWRvpoJ0VTfLHMUdmTVlZJF87u0p5EnOqahNPycd PEKBQhrzHPIsBKKdpkE8lDkA1dtAmm7o6IqIWtREVOzw4zFJdGHtoBzww9bS/iBVvs+G kJ3MUB8VkqNxKJ3Q8jQs1G6T9+nLqe4NnprP4KzSXPBs1wrPJO4CtUTfFbv2UA7rd17m 4vgi4tWJIsmUHiE+PnNpvU9UAx0tumcEHIQVr81MWaNvkYKhSiDleOu+jpllZQ9iEZRk oVuu67VeDeuo7Whsiu8/z+d+w31gb25mYxV/XfWZW4KBF54vE3VN+8kZ0b7UaMNN8+k9 /rgg== X-Gm-Message-State: AO0yUKXY8N6vG1vtTaiw7nrWhTgkJ+H7hZIyphOIzEV+gUHjolskk9kh BDakhlbBj5Wlx/ZbCRDp9ChmeK2cA9CKt5dsMp8= X-Received: by 2002:a17:903:22cb:b0:19d:1897:8192 with SMTP id y11-20020a17090322cb00b0019d18978192mr1977206plg.47.1677476922275; Sun, 26 Feb 2023 21:48:42 -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 im16-20020a170902bb1000b0019a983f0119sm3553986plb.307.2023.02.26.21.48.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Feb 2023 21:48:41 -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 67/70] target/xtensa: Avoid tcg_const_i32 Date: Sun, 26 Feb 2023 19:42:30 -1000 Message-Id: <20230227054233.390271-68-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::102b; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102b.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 Sun, Feb 26, 2023 at 9:48 PM Richard Henderson <richard.henderson@linaro.org> wrote: > > All remaining uses are strictly read-only. > > Signed-off-by: Richard Henderson <richard.henderson@linaro.org> > --- > target/xtensa/translate.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Max Filippov <jcmvbkbc@gmail.com>
On 27/2/23 06:42, Richard Henderson wrote: > All remaining uses are strictly read-only. > > Signed-off-by: Richard Henderson <richard.henderson@linaro.org> > --- > target/xtensa/translate.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
diff --git a/target/xtensa/translate.c b/target/xtensa/translate.c index f906ba7ed5..0cf3075649 100644 --- a/target/xtensa/translate.c +++ b/target/xtensa/translate.c @@ -1361,7 +1361,7 @@ static void translate_all(DisasContext *dc, const OpcodeArg arg[], const uint32_t par[]) { uint32_t shift = par[1]; - TCGv_i32 mask = tcg_const_i32(((1 << shift) - 1) << arg[1].imm); + TCGv_i32 mask = tcg_constant_i32(((1 << shift) - 1) << arg[1].imm); TCGv_i32 tmp = tcg_temp_new_i32(); tcg_gen_and_i32(tmp, arg[1].in, mask); @@ -1489,7 +1489,7 @@ static void translate_call0(DisasContext *dc, const OpcodeArg arg[], static void translate_callw(DisasContext *dc, const OpcodeArg arg[], const uint32_t par[]) { - TCGv_i32 tmp = tcg_const_i32(arg[0].imm); + TCGv_i32 tmp = tcg_constant_i32(arg[0].imm); gen_callw_slot(dc, par[0], tmp, adjust_jump_slot(dc, arg[0].imm, 0)); } @@ -1537,7 +1537,7 @@ static void translate_clrex(DisasContext *dc, const OpcodeArg arg[], static void translate_const16(DisasContext *dc, const OpcodeArg arg[], const uint32_t par[]) { - TCGv_i32 c = tcg_const_i32(arg[1].imm); + TCGv_i32 c = tcg_constant_i32(arg[1].imm); tcg_gen_deposit_i32(arg[0].out, c, arg[0].in, 16, 16); }
All remaining uses are strictly read-only. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- target/xtensa/translate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)