From patchwork Tue Dec 12 12:33:53 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: 753072 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c83:0:b0:333:3a04:f257 with SMTP id z3csp1876651wrs; Tue, 12 Dec 2023 04:38:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IEyD4QrLO06/zli0VoRl5wDXoXt/k4spOAzKBSvPOGoYsxqYQfkYHR9Us0HkupUs5uxJ/te X-Received: by 2002:a05:620a:6784:b0:779:e22e:1e8 with SMTP id rr4-20020a05620a678400b00779e22e01e8mr8139969qkn.36.1702384702639; Tue, 12 Dec 2023 04:38:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702384702; cv=none; d=google.com; s=arc-20160816; b=0XPbsidb0JkTM/87PXL7C6LF1JKiuQ2dfU5BCw9xCU6uzQ6GTmsYn614gt2TXY1hIA Mk1akCGzOpEVNifu2GBexfCJ8elQG2TghAdmDZSaTFYcx7iOIvPx01jvZyxBTz4DdVBW eUiEgnzMkM2uyj6sy6tpurorDh1GjY1OiSQ26HRy3hwhx4rU1vQx7P1Qsv/EqxW2TZEs 0xjx2UkY/Tkhs2MPOx63tn5sgeZDwqM04SghWW7Gh/wxuuf36JDuYttAb+vh5cukZHp8 xbTB4RXQpvCjrQWzsdMDRh2Yv1HkFiItq4YPEa7euJquUbq222M8hyCd7wS6IM3b6i9i NxWg== 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=M2BdSD36/TfwCDHhFsDB97C4HExw20REPHBMR3y2OwE=; b=bCQEVTs36dmbVRLT7c+eiJM576CAHFjAHDSbDIv1UerWal2qWRS1wglc+EHpwwoGxn /WWI2MYnHqv9I3wss06mokP70rdQ/dRdf047PHmPVxV1ynXIeyd1CpBJCkgd25wyyahh Dt/Vsghj0nk06GzERAp9PyborCv2RUpU13OdakkJV6W8EkLwd1I1qnxF79R9VVwEYQVF hNcqptfxlqXEkTiTXzCYr149e1lVvNpnid/zU30+6pM4O1+g/xcssuufuyDepXkqpM3g mI524oshDAShQKCgRodvsNtg1om9sSYq9Pga6SrqpSmemp5ECPNr7B1OrDTk/f9+UN3Z jt/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="aG6/g82X"; 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 q4-20020a05620a0d8400b0077d6d6f15bdsi10397395qkl.325.2023.12.12.04.38.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Dec 2023 04:38:22 -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="aG6/g82X"; 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 1rD205-0003Qc-03; Tue, 12 Dec 2023 07:36: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 1rD1zk-000251-5j for qemu-devel@nongnu.org; Tue, 12 Dec 2023 07:36:16 -0500 Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rD1zg-0008Vk-FN for qemu-devel@nongnu.org; Tue, 12 Dec 2023 07:36:15 -0500 Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2c9f7fe6623so70787411fa.3 for ; Tue, 12 Dec 2023 04:36:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702384565; x=1702989365; 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=aG6/g82XeI6bfBPhwMK6Lzv9kR9aCU7Q7PaSmZGzET8LdmNENBP0karaZnrBkKxab/ Is3iDFWvfgJqPGwT4i9E6L+iQyO1nKPBT2xppzX+hY9/FzDldX2e6Uo+egq/9KDZYXC3 mWi+mPIFQRr0hODuk6cIIAx8rBNTNDRJ7ldzOY7q4ISTtCtniGofz8pEOb91RyEPseLV xjSxmHJvJez10P/LmlNJU56ZHjW8rjQRyrGqvXOmOi+nYmIGBJd7IsZNR5SegYagDI3z at/E2p6Kz3LU3lTyGfkGh8pwJlD+7WSqu+DO0d5tsvKY/XgyW35mhf5FGyd+EcIF/hQY jq0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702384565; x=1702989365; 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=cgZovpJK6O4RWlgvAPnlDSHOcsovyLlniTXmjTVYaA2pwh1hByWIjepA5K1I8nDz2E EOoLmsjiTLYckqhnKGGYb5Zu13TMACXMOFKjg6X7u9/hZOdftx09fhk9P+MkbKfmuE8j O/OxM4m53sgD0J8huDcAP8DRu0ykNdct8nk/kFeu4OvzIZORcsJzdExCi8R08Oj3yqZn fxFEKsP3P0HFPxooQXv1e8A1GmZSOahmoqxbwXhPIceifRfhRP81Kj57eBZs/7yj6i83 sioJbHOHkyP9IMEwXD/Z4yrVZ2pl9kC8r/+QZZJPr4IY3MCd9Evqrk7956X0/0RUgRu4 p8GQ== X-Gm-Message-State: AOJu0YwpInS40Um6Cg8GOq5+X6/C/RnYhz4I5PAsTYcFc6tXuquLHYzr Xrublz6YcEEAG+MNn7CvYrWuq37EgkCMNlaQlmiZSg== X-Received: by 2002:a05:6512:281e:b0:50b:f9b2:d00 with SMTP id cf30-20020a056512281e00b0050bf9b20d00mr2195977lfb.22.1702384565627; Tue, 12 Dec 2023 04:36:05 -0800 (PST) Received: from m1x-phil.lan ([176.176.175.193]) by smtp.gmail.com with ESMTPSA id dn20-20020a05640222f400b0054cc22af09esm4672659edb.46.2023.12.12.04.36.03 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 12 Dec 2023 04:36:05 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Claudio Fontana , qemu-ppc@nongnu.org, qemu-s390x@nongnu.org, Richard Henderson , qemu-riscv@nongnu.org, Brian Cain , Thomas Huth , Paolo Bonzini , qemu-arm@nongnu.org, Manos Pitsidianakis , =?utf-8?q?Alex_Benn=C3=A9e?= , Anton Johansson , Warner Losh , =?utf-8?q?Phil?= =?utf-8?q?ippe_Mathieu-Daud=C3=A9?= , Nicholas Piggin , Daniel Henrique Barboza , =?utf-8?q?C=C3=A9dric_Le_G?= =?utf-8?q?oater?= Subject: [PATCH v2 17/23] target/ppc/excp_helper: Avoid 'abi_ptr' in system emulation Date: Tue, 12 Dec 2023 13:33:53 +0100 Message-ID: <20231212123401.37493-18-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231212123401.37493-1-philmd@linaro.org> References: <20231212123401.37493-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::229; envelope-from=philmd@linaro.org; helo=mail-lj1-x229.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é Reviewed-by: Thomas Huth --- 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);