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: 1874752 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=j0sybf8R; 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 4Spvr66hhvz1ySd for ; Tue, 12 Dec 2023 08:23:50 +1100 (AEDT) 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-Google-Smtp-Source: AGHT+IEwqt6eLG4A82nj43gtpanBMrnXiDuQHfBbhdfTI3qN+rGfYQe2+K/0exl5E5chj/jjV3dMSA== 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+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é 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);