From patchwork Wed Oct 18 21:51:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 735102 Delivered-To: patch@linaro.org Received: by 2002:adf:f0cd:0:b0:32d:baff:b0ca with SMTP id x13csp1226148wro; Wed, 18 Oct 2023 14:59:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGtyFSR6oVePReyWNTE3n9g8jHvkQ+Z00xRr2TgAKo3t/5dow2NGlnfBD57XeSPdrkq7pnZ X-Received: by 2002:a05:620a:994:b0:774:20df:8b3e with SMTP id x20-20020a05620a099400b0077420df8b3emr369693qkx.78.1697666349135; Wed, 18 Oct 2023 14:59:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697666349; cv=none; d=google.com; s=arc-20160816; b=kbj0wXa6QLxk4AfYIrGGKksGpQekI2VIdf0Z3xcq/3lnENLng4mfixKpQXZHB0tkef r7unj3rt0wPl/lQDU+ghLw/mYPxaXggOsgss/EqOC7eV/iD336T05kMaBpwgwPP0cERy U/1N0NvEfq14btMJfDDeER6+egGA0b3smllYsQG9vdTCH8GrtB4S1F3hvCnoM1hTGqCr dvVt87HQd3PqpJi6pmZce2C2DayPHbQXDdMNb9wJ9fbXM+WNjOqyGj3m7NDo1ExmQy3A N7bKpeLfwP6Drgxk3qVEmoZKzia6cV3GYm+MrCEMX/1gKVM5VkkcgQ4I4gM+l35ujux4 tlGQ== 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=yOt4L4RU9DBVWKbMxLcMk3VZCZC7MfUNBnEhx3kY+Fc=; fh=f2WZoDMBYjCKWIIOoPI+rQtxlv4fmOm4u+dLdQLqpOk=; b=y4hLdS8j1JmKGSaFvlRuzQbqA5YmrCt0nRQSH2kf3Z9wE75m8qo0fHhAXViVsZR/ZK Wdx0v2230O4STrCB0UHcq7kGwj2MDxlP1kNkMqRXjoDCtTpXBHJMEzXKS6P7/4G+o9RC GfmvT5m7e7Mz1tNGz4JHL80oBDmS63huxKqxaXDzYaMYtwsu10n4eXI5/tkLraXhiuv1 Opzj1uKlHEhazAIzZBysU4bkpPYu5kZVLVtl8w9ZPFcsOwARSnC4diCQJPHpgAjlVJlW TawTN574CNe3gdaHzxKd1w1IQYwyVRO+jfoy74vqp03y9BPVChMCJEyFKWTVcZv7xwgE m1sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SHniBY42; 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 g18-20020a05620a40d200b00772638f486fsi642514qko.305.2023.10.18.14.59.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Oct 2023 14:59:09 -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=SHniBY42; 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 1qtESg-0001me-9T; Wed, 18 Oct 2023 17:52:18 -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 1qtESR-00019x-IL for qemu-devel@nongnu.org; Wed, 18 Oct 2023 17:52:05 -0400 Received: from mail-ot1-x332.google.com ([2607:f8b0:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtESQ-0004Rq-3M for qemu-devel@nongnu.org; Wed, 18 Oct 2023 17:52:03 -0400 Received: by mail-ot1-x332.google.com with SMTP id 46e09a7af769-6cd1918afb2so459275a34.0 for ; Wed, 18 Oct 2023 14:52:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697665919; x=1698270719; 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=yOt4L4RU9DBVWKbMxLcMk3VZCZC7MfUNBnEhx3kY+Fc=; b=SHniBY42fKvkFZkXlqSSDnyFbnOI1oRYeApv7cMj5QslXTWlZ6u757kcceMPj8qcBQ 34dVaAKN0cLSRtq8Mmc0B0jygMsapQUIXiJ9MfVfD9WASmMYzpDQGVCPc111zpiXErYt +9e2a4KVn7ehfMikwaZIYoI9+orAcEBKwcpjtnDDeKBMCGBDLzw10a0UnNg1QikPN+hr /bkmulezy7KurS02gVUkGyTcy5/Q42TISAqG+kwlsDPFcmGRYMpYsEdlciZkq9fDajFO NyqhdmAv2qqN19yZrnC9U1HH0vR0az3EhaiJdDd33Jk9or/1k0AtCQr3BUx3wK/kEwk+ K8Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697665919; x=1698270719; 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=yOt4L4RU9DBVWKbMxLcMk3VZCZC7MfUNBnEhx3kY+Fc=; b=Ke8Z0/imzeLHp6i43kkKpt2TgXlccGi3tzLXAYY9sxNZUF/OZcM8fxEE2rtMMjrGlm oJ2/3rd/+77pofFFr3T0aSgaWW4aW5JP3kXXB+UGApHNhkbeDVAipBwMhOwkwXhvlA0h eNzWEo8efygk6hK074zr8hV/i7cxgBzdMPnqoTXqNqxJjIx6JclbW84fjFVNdK89E3DN xzb1sD803c02VuTKR1+gt1HR2bd0yRpLRVu0wP/JnO6PDlB/hc+S8eUG0nW+tywPSGeH OuSZSYBuEvRYeyPt0KEjfHzzfuJykfJDAG7ilBFb2ouYuN1y+b7SFOXf5W36astWwODA Q2pA== X-Gm-Message-State: AOJu0Yyy434UgniAjoga0Syft67Lx0130Lwk70kCCi0ucthQiiN8ZR3D cA4zKzE1hHKch4jrY6lF+HMb2VZ/+feNi/xlPcA= X-Received: by 2002:a05:6870:b406:b0:1e9:b496:ce2d with SMTP id x6-20020a056870b40600b001e9b496ce2dmr862259oap.12.1697665919588; Wed, 18 Oct 2023 14:51:59 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id w17-20020a63f511000000b005b61a024ec7sm2176380pgh.74.2023.10.18.14.51.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 14:51:59 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: deller@gmx.de Subject: [PATCH 27/61] linux-user/hppa: Fixes for TARGET_ABI32 Date: Wed, 18 Oct 2023 14:51:01 -0700 Message-Id: <20231018215135.1561375-28-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231018215135.1561375-1-richard.henderson@linaro.org> References: <20231018215135.1561375-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::332; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x332.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=ham 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 Avoid target_ulong and use abi_* types. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- linux-user/hppa/signal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linux-user/hppa/signal.c b/linux-user/hppa/signal.c index ec5f5412d1..4400ce4df4 100644 --- a/linux-user/hppa/signal.c +++ b/linux-user/hppa/signal.c @@ -72,7 +72,7 @@ static void setup_sigcontext(struct target_sigcontext *sc, CPUArchState *env) static void restore_sigcontext(CPUArchState *env, struct target_sigcontext *sc) { - target_ulong psw; + abi_ulong psw; int i; __get_user(psw, &sc->sc_gr[0]); @@ -146,10 +146,10 @@ void setup_rt_frame(int sig, struct target_sigaction *ka, haddr = ka->_sa_handler; if (haddr & 2) { /* Function descriptor. */ - target_ulong *fdesc, dest; + abi_ptr *fdesc, dest; haddr &= -4; - fdesc = lock_user(VERIFY_READ, haddr, 2 * sizeof(target_ulong), 1); + fdesc = lock_user(VERIFY_READ, haddr, 2 * sizeof(abi_ptr), 1); if (!fdesc) { goto give_sigsegv; }