Message ID | 20221130132654.76369-1-philmd@linaro.org |
---|---|
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp857860pvb; Wed, 30 Nov 2022 05:29:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf5+ihjTKC6112mP7AaoVVXXep0wD2OOKJYDHuetnq28oaM+G0I98ZNnpBQ7k0vJk23i0HGu X-Received: by 2002:a05:620a:2fb:b0:6fa:1500:8a4e with SMTP id a27-20020a05620a02fb00b006fa15008a4emr53498838qko.442.1669814948349; Wed, 30 Nov 2022 05:29:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669814948; cv=none; d=google.com; s=arc-20160816; b=i4ZZi3Uiql2gBt0nl20VlWuBOQOCZ69G2cZvs5v2IU4n2aKAPdRIOBAURlhHmlPF2b tHysJ3inmDUS0KONgbqQ3n66wb/jclU5Bm2cz1khf1BdeUxVWOeildLhzl24XuJ+/oTL s3JQ0gvB4WZCKWqzVa/ocPYJQygFrC41o+nfvT+fRhWkaYLnlt1HzKhHFa7kq7lUSyKI KBgGkLnijGWc5HXqjTyBaUmcLzVqKlOD2ut2ffpZ9jjiPol9rdPg620oizUAkobMUbVY f3+BYxGPQua/AGhEgwyAZFFdLScOj+FWqKru5VHUXijlA93tEgq8TdLNs4eywAEI2IzZ etzw== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=63COJef6IAkH8xxnEAdJ5D3CnIx0YX0J2CyRLRnlx98=; b=hmz9nOiLwHGydbLraSqLLgIJbBYev4xAmIkLHnekJH+9NvWBj0RMLrZempoJ7h7hI9 b9CO1xv6uZd9i9F3AEsgVzi1Q2iC8eMHHnDSGR6BQZhTIRjWKMj0Izdj8TU7Tm/F5585 K0StSsvEWY0fEiXhd5xu7vbbGOAtid8ISpefk/KLYNLvmtPSDwl4UfUHj8G+QVEHhcBQ i0VwY8a5h5h2ILHVgnfUEiaOHLW8mC/+NUViBDjNqFK/QCnMWCsNyh1eqg6pGt0o5GCq GOvkkz7BQlkyJjVdndW5lVmKCOicsa/DPcGbgPKmm4SbDa2OCcPYjw8eXXFTF1WNKJIb QAKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t6cZ2ECp; 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 m2-20020a05620a13a200b006fad2f376f0si698390qki.466.2022.11.30.05.29.08 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 Nov 2022 05:29:08 -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=t6cZ2ECp; 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 1p0N7D-0003FF-9a; Wed, 30 Nov 2022 08:27:07 -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 <philmd@linaro.org>) id 1p0N7C-0003Da-EN for qemu-devel@nongnu.org; Wed, 30 Nov 2022 08:27:06 -0500 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1p0N74-0006GH-2r for qemu-devel@nongnu.org; Wed, 30 Nov 2022 08:27:06 -0500 Received: by mail-wm1-x32c.google.com with SMTP id m7-20020a05600c090700b003cf8a105d9eso1386090wmp.5 for <qemu-devel@nongnu.org>; Wed, 30 Nov 2022 05:26:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=63COJef6IAkH8xxnEAdJ5D3CnIx0YX0J2CyRLRnlx98=; b=t6cZ2ECp2YUMZba07nMyDNNaxEN0W33CoQ+VnlBxtdYwzBSBrvE1ACui8org9sMK70 gwYq9hA1l8z0jDEN14x6nZcGErpa6MIBMbVPaoMwgvSlmwLkQ185bv9ataTXdxOSgafb limLlF1Q0NponTweN9EKAJXP5UeN37Ex+VagiAWe6Oh/h0ZKtaJrPAz1RmWNqbxw7Y05 QJt6lkAK7I6tLRhGBfyAE0DAgVfbAoMGiPPfYEgg7SmyjIhTblCeLOyuczn9uj2wHR3U F16l3YFaNpCTiDknNix9HkJ2IsrKg9POOjYm4GKqa9AUIf3XX7JByaSVjHjh0kKkGYmb lpgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=63COJef6IAkH8xxnEAdJ5D3CnIx0YX0J2CyRLRnlx98=; b=1+N5Xjegzt0Bf6oqHQyJVK01aUft0w/F4SNyKooSHWd0HChs2vTTCilOZ+Y83Vh9z3 0kqL8sKFhdD2+8Nu+scS7mwg5DA84ASv4M/IMWhejZ1gr0gcwlG0v73b9YcbpQELgoGK 1mvbVLQSvd092i9PGveLdKioFTq/+nKWv/1q4PgvvH+jRNccmcIdC27RGUYTZZzUln8F zR6WH42wjsg6JdKkmpHAPXQYnrfHpysxA/qxZq5BAw0xYuLmQDWMymSHwUCYBN5JVSG8 XVBCH9BxDjMn2lbccTRFZwh94tBBtSU5eIjcMOsG3SueHViEHdRH5S/kUlpdeNVCDpqZ /xUg== X-Gm-Message-State: ANoB5pnWnD7TLciC2ePKDEnEqc0vSwzRkubzVwsi2MqD8DCKDeC8GCmQ Zb6l3xuATiYE3rhgdo4bMFK8Aba2B689T1Ec X-Received: by 2002:a05:600c:3503:b0:3cf:f0a8:d04e with SMTP id h3-20020a05600c350300b003cff0a8d04emr36400684wmq.45.1669814816469; Wed, 30 Nov 2022 05:26:56 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id g13-20020a05600c310d00b003a2f2bb72d5sm6994144wmo.45.2022.11.30.05.26.55 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 30 Nov 2022 05:26:56 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>, Jiaxun Yang <jiaxun.yang@flygoat.com>, Aurelien Jarno <aurelien@aurel32.net>, Paolo Bonzini <pbonzini@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, Huacai Chen <chenhuacai@kernel.org>, Thomas Huth <thuth@redhat.com>, Stefan Weil <sw@weilnetz.de>, qemu-riscv@nongnu.org, Palmer Dabbelt <palmer@dabbelt.com>, WANG Xuerui <git@xen0n.name>, Aleksandar Rikalo <aleksandar.rikalo@syrmia.com>, qemu-s390x@nongnu.org, Alistair Francis <Alistair.Francis@wdc.com>, qemu-arm@nongnu.org Subject: [PATCH-for-8.0 0/3] tcg: Replace tcg_target_[u]long -> [u]intptr_t Date: Wed, 30 Nov 2022 14:26:51 +0100 Message-Id: <20221130132654.76369-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=philmd@linaro.org; helo=mail-wm1-x32c.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: Replace tcg_target_[u]long -> [u]intptr_t
|
expand
|
On 11/30/22 05:26, Philippe Mathieu-Daudé wrote: > Trivial cleanup (99% mechanical) suggested by rth: > the tcg_target_[u]long type is redundant with [u]intptr_t. Ah, no, what I said was that much of the usage in tcg-op.h should be either ptrdiff_t or intptr_t. In particular, e.g. static inline void tcg_gen_ld_i32(TCGv_i32 ret, TCGv_ptr arg2, tcg_target_long offset) should change, because @offset is an addend to a host pointer. In this case ptrdiff_t seems more descriptive than intptr_t. Generalized replacement is wrong. In particular it would break x32 (ilp32 on x86_64)... not that I've done any testing of that in the past few releases, and qemu is exactly the wrong sort of application to be skimping on host pointer width. r~