From patchwork Fri Apr 26 19:41:32 2024 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: 792353 Delivered-To: patch@linaro.org Received: by 2002:adf:cc13:0:b0:346:15ad:a2a with SMTP id x19csp625403wrh; Fri, 26 Apr 2024 12:44:47 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUf5N9nEcTZcVkMl6UH/Jgn52yp1+1y2TO69gSFK7VWQIYwH75/2kLQ+DLNdbHxYBZ9fi9HG9FWTM8L2PtXWnpY X-Google-Smtp-Source: AGHT+IEVLDoutPmw4oUlFqrLqNvkLiRuytzTi5zst3Mlifk/Z8lUmUgj5yHF0EyQyUQuxfT/iTIB X-Received: by 2002:a05:620a:4d0e:b0:78e:fd59:3c3b with SMTP id wa14-20020a05620a4d0e00b0078efd593c3bmr6007170qkn.35.1714160687605; Fri, 26 Apr 2024 12:44:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1714160687; cv=none; d=google.com; s=arc-20160816; b=Y6kylFGYNpYOTIXCm2WgEQrv67IQvSsA09cDWHJ6zywV9w+x115aCYzLvle1SmVI9V YUErisW/UaHFW39HZ9yD1MpSzfiiKbfA+cyFaMMrnio+FA9xv3wAgN1AsjxMkV9jsYey DCEmXFB+LqfUlr3+I08pSLkgW3KYWRBdjRf9pAkeBXzH+7yJfaWRFwV5H+QjxfGU19GS 3994F5GLEs03KwnwOMHBsjvkbk+FhpGWXvdp6iL/xHE2MyeJNjACTgXZ0cy8XFeJwBCh ydc16BJGCYhm0R+kLvvM60NNttVCEY67QqVDqXUwMKiRkNvFxJpIE8wCCEP5BEBkNXF4 IeXg== 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=zCHikf9aNyk3WhcB018t8YJhGkQVI+bzenRpRAy8E10=; fh=vrgnZ2KBskJ2OKJj3lNyG1o4xMqth8alyTyyIGcBdSg=; b=kJBTqqwpZYzORFCsP6s8HiEyt+3obn2LDNgQBUjCA75CDTBOTjEbixM7zWGvyAX4Wo 6uOA7up+UOYg0myEEst87rMlnxe0zMzJPxl5q9kNtyuwHY8+8otFbyE5jtRnFy/F3Rty xf2QPaQZBQ3r/ADZxoMPSDClf+mMFFDa4AkhpvG+jbe+cvr/17312ah/NHpO0o2vwfg7 RCcyRAquXVYjJ/5lvUA5VWyFSuejhcMgmNiZm/nmmF5WpwxisW0eea9Ot8N97Z0ZjaKf 9Pnjn1kcK3ermvmctx/0hsZGULWz0vmP4sFmSsvhvXCa05CRY1DbA23r+2iKL2c82pI9 7jCg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ymlZhQlQ; 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 wl15-20020a05620a57cf00b007909424a5bfsi5884936qkn.530.2024.04.26.12.44.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Apr 2024 12:44:47 -0700 (PDT) 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=ymlZhQlQ; 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 1s0RUN-0002pV-Td; Fri, 26 Apr 2024 15:44:08 -0400 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 1s0RTk-0001cD-UT for qemu-devel@nongnu.org; Fri, 26 Apr 2024 15:43:29 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s0RTg-000354-Gn for qemu-devel@nongnu.org; Fri, 26 Apr 2024 15:43:28 -0400 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-a5872b74c44so296808166b.3 for ; Fri, 26 Apr 2024 12:43:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714160595; x=1714765395; 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=zCHikf9aNyk3WhcB018t8YJhGkQVI+bzenRpRAy8E10=; b=ymlZhQlQ1VzKm64oGfteRO29nS8XfmuSYGxOpxtp75eg5VF6T0AXaKCFqrYEYnalCN w5fnhEJAfmhJ5FLLmyu0YSFBkEenyCKXOEY71UVl0z2jT2kD7d2PmTgkc1KwILTHfVse tvz0BkeuXjdPKqIxNJcK/5BIbX0LDMM8BT/OeihwEjz0Roh5+npNOLTipXTozn0GOC+x gAES0+cAdICfSTPg537+z9gOoWaiuImQpFebi6Yq0WIPJg0OMgSBZxAOvqprx7UKwkLT dyfkuWZxsY6Q9xXuhlgk/2rfXRqPZiR0jokMgpvdA47M37PRKrNS2jmtlyjucDBdsW6z /BWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714160595; x=1714765395; 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=zCHikf9aNyk3WhcB018t8YJhGkQVI+bzenRpRAy8E10=; b=u6uy5Cu93TR59LMQKN9kGoyj/dixWqDHqvxdDBNEK0g9P0r5SbdM3GwRdbEpNMwpS0 bRm7WLBwTcz6fJs/XWpeYME94onLdPpJSHvJAyOSVXFXrnyog8lg4Z2KIemVpzktxY08 hxTIHfhWsg8FjhXNvWGK8wRt3ObC+DO4fky1AhY+1GqTqx+50mv29zdEiVetkrcVWlw+ jeh17bRPDJEAx3+PLuGAcDynPef9izx9mbqH7VqI0exRAgtfKW9onUB90bqU7AVpKNL3 V/D3YBpnktxf2Cnh/WSsqYW+qCxfgu9oU8doI++zCaN29oUCkyQqfTnT+HbtakAsQ/JU 8IPQ== X-Gm-Message-State: AOJu0YwEyZK44vFEQIfAaC0hC6o4/npir/hUYdjo2niz7KA9o0u5GMpB itaeEMI7OkOxGmjch4klt1OQ6FPUyQX2SI90XBJUbPE3Rq9M+WkFB0ntYQuJcmRnvHIBwyJ5N4s vohQ= X-Received: by 2002:a17:907:97c8:b0:a58:7857:fee7 with SMTP id js8-20020a17090797c800b00a587857fee7mr3023416ejc.68.1714160595167; Fri, 26 Apr 2024 12:43:15 -0700 (PDT) Received: from m1x-phil.lan (aul93-h02-176-184-11-147.dsl.sta.abo.bbox.fr. [176.184.11.147]) by smtp.gmail.com with ESMTPSA id i13-20020a170906090d00b00a588dab605dsm3666771ejd.88.2024.04.26.12.43.13 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 26 Apr 2024 12:43:14 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-riscv@nongnu.org, qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Nicholas Piggin , Thomas Huth , Richard Henderson , Daniel Henrique Barboza Subject: [PULL 12/38] target/ppc/excp_helper: Avoid 'abi_ptr' in system emulation Date: Fri, 26 Apr 2024 21:41:32 +0200 Message-ID: <20240426194200.43723-13-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240426194200.43723-1-philmd@linaro.org> References: <20240426194200.43723-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=philmd@linaro.org; helo=mail-ej1-x62b.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: 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 Reviewed-by: Thomas Huth Message-Id: <20231211212003.21686-18-philmd@linaro.org> Reviewed-by: Richard Henderson --- 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 674c05a2ce..0712098cf7 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);