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: 1875138 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=aG6/g82X; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=patchwork.ozlabs.org) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SqJ7M0x6Wz1ySd for ; Tue, 12 Dec 2023 23:38:23 +1100 (AEDT) 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-Google-Smtp-Source: AGHT+IFmeBvWgvvBbzYGkF+zYPl5+e01JLIWWNuas4xPI2HT4LsHsl0TWRedv0QHFzvG+nl31n4+yA== 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.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);