Message ID | 20230227054233.390271-21-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 m6csp2184460wrb; Sun, 26 Feb 2023 21:50:05 -0800 (PST) X-Google-Smtp-Source: AK7set9CUdTaJn17lHkA3jGsV2j/yfZzgCb1sYoHJTUlumyYt3FlsllxwaibuFttMHf7ss6yfMvf X-Received: by 2002:a05:6214:20e7:b0:534:86f1:bcb5 with SMTP id 7-20020a05621420e700b0053486f1bcb5mr41892659qvk.41.1677477005074; Sun, 26 Feb 2023 21:50:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677477005; cv=none; d=google.com; s=arc-20160816; b=IhQvoiRp5IqqWbnZEXzrVDrsmwEBu+kioHHtOUJ8LteYHz2qg5r7Q33ybvVTj/k9P+ AFAq6xUst6QgDDPe1+dL3KnPyPdN5QCQFyMydwWpFaLxrht1Azxa069hluCDCaZs99wc sDxrxltMXy7LepsZIzav9cWeGUZ+ce2dEC0rJS7FEN8Bs5S3IeRGnZ1ZJtgKMc9uJxVn jOoDyLZ879P5Lxq7J7xMvb5UavgsxyKmJAMU1n2zR/o4QRQX+ZJCp03+z3VuC45arS59 EaXxaGiKo/WTxVxf8Cf4nw6TIC+IHsWGqQ6ub66SBBx+Zmw1tJMKotjqGdIOGc+i0zzn WZew== 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=bCx3V9E9EGBx0xOadAkXFFn5kP53awpB2DH7f1fkm6M=; b=DYMBsjG9XbvzVx5f0ly6c3tEN1jslyqEZqEOM6fgRxKzwuf5qvA9ziuxNNams5sf54 dZhcV4Jf92iInRCodM49czGwDqigC37bNrj9tGjobQhxBFABY/sO3SkxCLkI4dv8vVkn 7zk1LTPxWvgUcYEKIs5cLJ5aGLjM6ipgT4sVwxok9UeDbJbRJWZTJFRgt7hqCn4i/x46 LS+AWiW4F6o9aKKbaIB+v7BHcaIdq54bgVrRxyLFkvTFBBvf4ygk/KDTJ0k0m8MRljcP /yI+oEthtmEecN26NaQ0pREX9zaozwejvgsFw/Ju9/VlCplYfp4NsYJ+7tCpdgNzB/ZF cZyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=o6xly6XM; 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 z2-20020a0cda82000000b0056eafd69749si6244400qvj.247.2023.02.26.21.50.04 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 26 Feb 2023 21:50:05 -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=o6xly6XM; 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 1pWWIk-0005Io-HV; Mon, 27 Feb 2023 00:43:54 -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 1pWWIX-0004dD-J4 for qemu-devel@nongnu.org; Mon, 27 Feb 2023 00:43:47 -0500 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]) 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 1pWWIV-00059b-MQ for qemu-devel@nongnu.org; Mon, 27 Feb 2023 00:43:41 -0500 Received: by mail-pj1-x1031.google.com with SMTP id nw10-20020a17090b254a00b00233d7314c1cso8866553pjb.5 for <qemu-devel@nongnu.org>; Sun, 26 Feb 2023 21:43:39 -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=bCx3V9E9EGBx0xOadAkXFFn5kP53awpB2DH7f1fkm6M=; b=o6xly6XMScfYjIqZw7WagdWsOewMn5SLZnFg2CKnYAuyzbr25ryXyoVQfP0eqAA6XU BMRefkjgAe04OwNdZePMap/WEXkSsaZcCL3G08hZdM0CzvOe3fMJktuvvF2v568bQYkt Dz1/bMCcLoVaTsnDVJO82BDLdUrsye8Fn633SVTbFhWhEIvu8OvYJ1Eg11Zd52qq7iKZ DpsoKivez69WGEzl1CJVqtTL2KvPS0175Y/Mhelgd3x5+eKdYTsrViYuJPvvCPn3NFPD 7/SbOOJ2UTHLZYokvyvDOFP0WDGhCvjUBFSf2heGD9X3ohDiC4r68wDd3jecvA8OAnep HzAQ== 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=bCx3V9E9EGBx0xOadAkXFFn5kP53awpB2DH7f1fkm6M=; b=2RwlzMO6nSiPBgmQJWBU0dX1T/0LEVSIhc77kM4KhhC8qeX3lNvN498QjULkMPFO2k eTLgAxRn4vqTNER0JMuc+SomYMvWALjNWErVjneNSmEbPTLT7fs2pYeGWvnPBjk0bIDu 2zaXihWHbnAT5URyLhT+XAVs7T+qdIds6rhKq/eExFxDCPh47sdNCFILsjlnLSVy8BTN eQD9BjS0M+QlrmSC6omYlZ9qQEn0g30k/Z0JaZaih7LdSkFW1/1kw8m1FKiRnq7ytAKh u9YY3L8Tq+9TElmN41S5Oc4ne39bvWc0DSDZzFcpJHD5uY9tA44uOUB+qjxAn6by8btb l0zA== X-Gm-Message-State: AO0yUKW5vL8gb+UBkXGpFPSa8m2AtasWllQ5pu7WeXjdwJa8Gj8/C6Z0 AmAZRjle4e/Vw0CUF1unIPhMGjcTHTGO6jrJMwY= X-Received: by 2002:a05:6a20:2d9a:b0:cb:77f0:9a27 with SMTP id bf26-20020a056a202d9a00b000cb77f09a27mr19496594pzb.24.1677476618083; Sun, 26 Feb 2023 21:43:38 -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.43.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Feb 2023 21:43:37 -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 20/70] target/hppa: Avoid tcg_const_i64 in trans_fid_f Date: Sun, 26 Feb 2023 19:41:43 -1000 Message-Id: <20230227054233.390271-21-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::1031; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1031.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: > Use a C test instead of a pre-processor test for the id. > Use tcg_constant_i64 instead of tcg_const_i64. > > Signed-off-by: Richard Henderson <richard.henderson@linaro.org> > --- > target/hppa/translate.c | 14 +++++++++----- > 1 file changed, 9 insertions(+), 5 deletions(-) Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
diff --git a/target/hppa/translate.c b/target/hppa/translate.c index cb4fd1fd62..3ea50d0cec 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -3547,12 +3547,16 @@ static void gen_fcpy_f(TCGv_i32 dst, TCGv_env unused, TCGv_i32 src) static bool trans_fid_f(DisasContext *ctx, arg_fid_f *a) { + uint64_t ret; + + if (TARGET_REGISTER_BITS == 64) { + ret = 0x13080000000000ULL; /* PA8700 (PCX-W2) */ + } else { + ret = 0x0f080000000000ULL; /* PA7300LC (PCX-L2) */ + } + nullify_over(ctx); -#if TARGET_REGISTER_BITS == 64 - save_frd(0, tcg_const_i64(0x13080000000000ULL)); /* PA8700 (PCX-W2) */ -#else - save_frd(0, tcg_const_i64(0x0f080000000000ULL)); /* PA7300LC (PCX-L2) */ -#endif + save_frd(0, tcg_constant_i64(ret)); return nullify_end(ctx); }
Use a C test instead of a pre-processor test for the id. Use tcg_constant_i64 instead of tcg_const_i64. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- target/hppa/translate.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)