From patchwork Mon Dec 11 21:19:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 752532 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c83:0:b0:333:3a04:f257 with SMTP id z3csp1547439wrs; Mon, 11 Dec 2023 13:23:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IGR7sMqwR6opb+8gM+JmwxTTtL9IRqCSXsQ/6Bwot9K6NJjpsd/SoHpqBGl5/zpns1W3RcR X-Received: by 2002:a05:6808:3c99:b0:3b8:4164:5fe0 with SMTP id gs25-20020a0568083c9900b003b841645fe0mr6368045oib.37.1702329829749; Mon, 11 Dec 2023 13:23:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702329829; cv=none; d=google.com; s=arc-20160816; b=bJa+c6pvb0uM8LLsRh0KOMdc45c9ai2gSagozDhzyqktSNsELIZoFcNoepr+Ly/iH7 461wAZRSo8mWQAMX8C0zAoe+CYZMT36xoJ7MbpWTT9JGu48I6EECBHn4jCoeqL0tXrUH Y/QCfGXGI2r0U/D/Rn9y51qjH/mslZ3cyUMWPAHTw77DUtjqnns5C+KdZy9dfhpQHQ6G VOQhDKmS2TOozecpSOUBFzWMD074EEVAfJjBczhE9cuVKhkUKfi/2qO77/0mDcxwRWNF T5f2+KmXRYKhUIfQvB0TEyhtFpI6p9dRJBq4pZCRGlaAKwfwK8916P57PaWzH//Y5d6m iJ6g== 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=jCN6XEpRfBzl6QRBVexJQczvz29R6MzglzJSIvh3kCU=; fh=nNxGOtwFJbFbIeD7JuqhPtCnPp6jwl4EO+WBprDXaus=; b=uL26jauAdm0cJcSaEHTp7DtR3dFADzckmETk/7JccEnZW28UGcrr66Xn0YeLtGv+hg CkJREf7kfDfhTfklo1BJoOMgCPb/p5j03v5XMyzt/iv6V1IXDM9SEC9vWehIjumyKNOw GYltN76gK08oyG4cCujOEMo+PYNlWLIcCNdgHmkKtfBu3X32iJ/NF/+88x8mcTNffL5a Ld9mgLx0kZ9+v72MBtKXVP65j9MU42CVCKTml1GBnmFDBDtVrwEcz0Af7PV9x5NGEbj2 pthfydLqoR7CcnvvtdHIax4d0vJSea9Yf8NJtq+CH89SVIvKBCuCVi+aEwVmOXu7R+HI ML+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=j0sybf8R; 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 r5-20020a05620a298500b0077f74ccf01fsi3636137qkp.179.2023.12.11.13.23.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Dec 2023 13:23:49 -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=j0sybf8R; 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 1rCnjc-0004SK-6l; Mon, 11 Dec 2023 16:22:40 -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 1rCnjT-0004GW-GM for qemu-devel@nongnu.org; Mon, 11 Dec 2023 16:22:32 -0500 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rCnjR-0005lG-OB for qemu-devel@nongnu.org; Mon, 11 Dec 2023 16:22:31 -0500 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-54f4b31494fso7251633a12.1 for ; Mon, 11 Dec 2023 13:22:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702329748; x=1702934548; darn=nongnu.org; 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=jCN6XEpRfBzl6QRBVexJQczvz29R6MzglzJSIvh3kCU=; b=j0sybf8R9qPyueRhalbXpgIaMYo2vno4hdHCwJpHMNxt99FgLmy9SeQTKePAWxlp4F 66zZ+jH1SHxOST5xzz1Q6C9Ub0OZrQagpRmBU2Z+gKzh2zVMDU7j7BkFM7Qp8cx2xB7C uuueSOht49EnbcWu6+U4BY2PcJw4ktOARZXvvKh2Oi/Kfu0PmAqdLIdLO4o6AfxleSzC 2TKpcY1dexlULMoUii3UyzoZ1UkBlW0DwAjoc633hJyNn3n1lNLMFST/IvlxVyUkcQXd QOKVO22TdRbccqtQ1m7vgH6Tdi2Mx1r1wNDGEs3qGS1ag9L01aKhn8Oae9G1KOj6msyQ OQ0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702329748; x=1702934548; 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=jCN6XEpRfBzl6QRBVexJQczvz29R6MzglzJSIvh3kCU=; b=TK39clEmnB9su93+aziu+Kyh8Ng1FUOfC+Hd6r9RLMZPMMUlv2vhovYL7WxIgGffV4 gVBTqpvqI373lOryyL0C2/8Q2XeW8FZgtg9EFMiUmMTdlewvR0sXNZllDRBxRcP4eTDy dRmCFO241j283JCQxGOletdBfm9So4qQNuJaxsUiJKSdMnziHp9DX2Qd+/gRH0eiER57 itbaNZ9M/YrQgPqJ5ZqP/JBUR/6jOVNr4t0mmIMuCAcAqGo62bcLpd7oAkL9WyuoG+4G 5EcaFoNNnDWBRT23QMj7UPmPtPkAwin1ketXPl6gz2RtmJcN2quQxlj7Qru26O37AfQt I/eA== X-Gm-Message-State: AOJu0YzqAQ6kRmwZdqAsuJetDlhtAHKl9sbY1BdnbXKUYWpB4bbyBcTY x5M4rj8DN9Kfg8kaOKFnqbdCP4cudtsHiORRpvKLYg== X-Received: by 2002:a50:c905:0:b0:54f:4f7f:1a57 with SMTP id o5-20020a50c905000000b0054f4f7f1a57mr5170138edh.31.1702329748112; Mon, 11 Dec 2023 13:22:28 -0800 (PST) Received: from m1x-phil.lan ([176.176.175.193]) by smtp.gmail.com with ESMTPSA id dk11-20020a0564021d8b00b0054c8415f834sm4087989edb.34.2023.12.11.13.22.25 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 11 Dec 2023 13:22:27 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Ilya Leoshkevich , Peter Xu , Liu Zhiwei , Peter Maydell , Mark Cave-Ayland , Eduardo Habkost , qemu-arm@nongnu.org, Paolo Bonzini , qemu-ppc@nongnu.org, qemu-s390x@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , qemu-riscv@nongnu.org, David Hildenbrand , Warner Losh , Claudio Fontana , Brian Cain , Daniel Henrique Barboza , Richard Henderson , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Nicholas Piggin , =?utf-8?q?C=C3=A9dric_Le_Goater?= Subject: [PATCH 17/24] target/ppc/excp_helper: Avoid 'abi_ptr' in system emulation Date: Mon, 11 Dec 2023 22:19:54 +0100 Message-ID: <20231211212003.21686-18-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231211212003.21686-1-philmd@linaro.org> References: <20231211212003.21686-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::533; envelope-from=philmd@linaro.org; helo=mail-ed1-x533.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, T_SCC_BODY_TEXT_LINE=-0.01 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 'abi_ptr' is a user specific type. The system emulation equivalent is 'target_ulong'. Use it in ppc_ldl_code() to emphasis this is not an user emulation function. Signed-off-by: Philippe Mathieu-Daudé Acked-by: Nicholas Piggin --- target/ppc/excp_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/ppc/excp_helper.c b/target/ppc/excp_helper.c index a42743a3e0..3d7c9bbf1a 100644 --- a/target/ppc/excp_helper.c +++ b/target/ppc/excp_helper.c @@ -142,7 +142,7 @@ static inline bool insn_need_byteswap(CPUArchState *env) return !!(env->msr & ((target_ulong)1 << MSR_LE)); } -static uint32_t ppc_ldl_code(CPUArchState *env, abi_ptr addr) +static uint32_t ppc_ldl_code(CPUArchState *env, target_ulong addr) { uint32_t insn = cpu_ldl_code(env, addr);