From patchwork Fri Oct 20 20:42:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 736293 Delivered-To: patch@linaro.org Received: by 2002:adf:dd81:0:b0:32d:baff:b0ca with SMTP id x1csp501153wrl; Fri, 20 Oct 2023 13:45:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFslIQvaOfnAXfJnjU907OW1cn9IpF+X9dskOw7MKTFRVsDG8dNaBwOX/5FQBeCrFBrxE3N X-Received: by 2002:ac8:5bcf:0:b0:41c:b99b:4d75 with SMTP id b15-20020ac85bcf000000b0041cb99b4d75mr2763720qtb.11.1697834724202; Fri, 20 Oct 2023 13:45:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697834724; cv=none; d=google.com; s=arc-20160816; b=eZ2LLALjHYMylLi0QHk52RCZjdW7Ez6LSdkySD8izKX0lXMTr9J/VrS3oKZ2PLLV9w qqqXFDlQfWc7Awnb5bZf7swTidEp4oXRNxIJLYDCAqah6/zru1ZO819zi0LGu9MtosOR xty1scseV9/fDPEeCrPYahZ+C5eJtUZeoDY0MFSKrRZKrQAobQn7MRyXiWzOYGacjQr9 EkfjvPflSES4DZ620/4GitvlRKndC3NE5uMCnlbyYfNQfThSj9mi5ojwbusu85GwVafB 6nNSvgq9TR8Ot80RdIxhUZN1PLI8wImRDQpZH16ev84Y4qcRsPEXei9CUjdAk2BrC5lT OLvA== 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=xtkaJF9+gMYoqpzUR8ATyW8aKIy9V4St1iGFcMEqLNY=; fh=AzeAcdP3m8QbCrR9JX5pAsbSbmsQq+UaJF2pdbgiiNs=; b=Ba91CzjSlPV30oh0SdRp94IzyQCDUfkZrEXEB2zYWELLEg8haanxYSNQBmOOIhf0cv eg549jV/cN2Xtdp6YyHvHJX+ZYyyHzkQoE6UpHurkHikGIGbeOA+nYovvTeVblVxjKVD 3xsvegu3lxKhlgZJNdWg8/l6bDWUtSjyTWaw/jm83RitPjph06eP4mmr6+tdCkK52MOQ oh+9kclwmHKWK/jYTIruXstP77JI2l6I8MKbImpaLYE97XJz3K/Ua4nrVjX6MkefsMlM 3CWLtYYKgzvGwEoJRPOednDh9gx9oELQ1ON2KKHlyEkV7rXd05byt3SO/VoQPiYHyRlK vCpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q1kQJfKi; 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 s13-20020a05622a178d00b0040fd5df3824si1980602qtk.36.2023.10.20.13.45.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Oct 2023 13:45:24 -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=Q1kQJfKi; 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 1qtwLt-0007pW-C2; Fri, 20 Oct 2023 16:44:14 -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 1qtwLl-0007lt-8N for qemu-devel@nongnu.org; Fri, 20 Oct 2023 16:44:09 -0400 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtwLg-0008EJ-3G for qemu-devel@nongnu.org; Fri, 20 Oct 2023 16:44:04 -0400 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-6ba172c5f3dso1169952b3a.0 for ; Fri, 20 Oct 2023 13:43:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697834637; x=1698439437; 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=xtkaJF9+gMYoqpzUR8ATyW8aKIy9V4St1iGFcMEqLNY=; b=Q1kQJfKi0tLI6b2j2sfX3Ct8L/VNVY4Leijjc9HzBwts34D7JovNpFb/F9PNb9Imxd sbYN1kUL81zZRKscpn3mmWHdSoAACULSeZzwsqedrKLeizHhnbBXit5u1VxwFB4yaVSO nqOwbnqxZfpsmSW6UnZ1ydxt/kC0yFPpEQXTp78+ZgyVpNb5WsBj+d1zZF3oa3NiaL7U FcxhrBadfuGHAsLCsokyQFjgAt3zxD2X5gzNH82U10ZEH0LMoNGD59EVN/JhujWL5igX SdNjQpMzIQYF2Zfy4wi2fRFkyhJfZsxBAYWn2/CxHtrNRkVMGwG/UPoCx40hhfQ8RjOH MS8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697834637; x=1698439437; 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=xtkaJF9+gMYoqpzUR8ATyW8aKIy9V4St1iGFcMEqLNY=; b=ad9zRFLH+8L5YdEBz9lkt2mrg7zOT3vFlpCbnggG0Ev+9JgY5Uy//egrJURsGenMcO cTuoYTcX37IHbq+bBjf+huveKfFNgQySGxeXyEqH0P+p3vN0+PeKrQJIV8JAWuwaNsiR zmW0CkdyNO4AYyRczrdcHiSY5GvVJgI5AY7sJCPyJw0ebsv72gt2wT0DUIkCOjXAsY88 +IFI8vyKZkNyoHKp4bEtkY8tUZeLm7X16PDiijr5WyeMIGaU5lEeX4HGXTLVzXGhVdTU ExlHI4p5AlDJaqSbTXs+ONZSnxUEr/DVbzDTWaQGg8uyik/lSN/4w9/10DFht8kBASfj GCuA== X-Gm-Message-State: AOJu0YwjVUcl5DeUAi5MnktahASDo/lb4EyD7C0kxm5Ijs5hRQ7+TJP7 Vrelwwl+prhB5a7Q/ftC0FajEVyY3i/M70gI1WA= X-Received: by 2002:a05:6a21:47c6:b0:174:f06:34dc with SMTP id as6-20020a056a2147c600b001740f0634dcmr2418905pzc.28.1697834637418; Fri, 20 Oct 2023 13:43:57 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id k15-20020aa7998f000000b00688965c5227sm1944975pfh.120.2023.10.20.13.43.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 13:43:56 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: deller@gmx.de, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 27/65] linux-user/hppa: Fixes for TARGET_ABI32 Date: Fri, 20 Oct 2023 13:42:53 -0700 Message-Id: <20231020204331.139847-28-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231020204331.139847-1-richard.henderson@linaro.org> References: <20231020204331.139847-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x435.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. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- 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; }