From patchwork Tue Nov 7 03:03:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 741790 Delivered-To: patch@linaro.org Received: by 2002:adf:fd90:0:b0:32d:baff:b0ca with SMTP id d16csp1419562wrr; Mon, 6 Nov 2023 19:06:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IG/CRC1hl6fbsBcS2WJipv+Yg+jYILeccJCMhJyR6TnOSfQ01ikE1SO79i3rk4/S1i2Y/It X-Received: by 2002:ac8:5bc7:0:b0:418:1272:7c6e with SMTP id b7-20020ac85bc7000000b0041812727c6emr36211162qtb.7.1699326406945; Mon, 06 Nov 2023 19:06:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699326406; cv=none; d=google.com; s=arc-20160816; b=d/xpxGP8gbs5imAFxRGlTepxDkIlspKzSxxyblRLPaQei8KppHtrkvLplvXVcRNBKM m9pV7BUgBkOZ+I+cOwBubaQqzw8SwZ9GxSonarLtW4JIOmglxJ5gJQVOi7FAVEQ52z6u 0wSmPanaTwj0n3mQ12t2acpZHRIlcnr7GZjQW/jsVR67XKG/XSmKuzgzFdobI1x0Zs9W rVguY4IuNuo/aYh3uS+ZrTw/sOv54LQzrTQbYO5HQlEVBEfjMA6H6Zs3Zi+4IJnOyRAa pf2YCShKMKHjQignM3ueQCuKi68329Lzh04vgH1jDU1nZ3oHS39EfmS8KX5adRk5EY69 ssbg== 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=3B5AGwWmkfcW3PKZyiJ5NeRwC9XFMc7EJS0UPbJQ5t0=; fh=kQadAhxV42GJ3cd2VUw1RyURv/zJQGvmUdF7iLEVTtc=; b=ZLP3QYuyv0/iPNUUMs1XYt7aAsN4XZwpPzxAKYEuVxz2WWoFXbrxLiFk1v/gavSFen E9mTNfqd0LUKooGlhIF0dKj5s6g56VfxUFLRV8vKKevg3SWoEfFviIUo7obiH66E/MVj 7mRjvpWMuG1rWIkiGyWB598MXJ8xePQXF1r5FwbE2fS7FAwNDyw+8KhLuI3kLFe7u7VQ EqPa/JJUyTFcuabZCJ2TzaP5yMUP9/K1Mr3X8+giMFqWQt303bTEFmNFOpB9l3HpW5sI nzy9iusjiWOxP+usW08QGqtv4CnuCaucxiHyYzV7h8tum6mZThPVUUfXQy4xCYB8qYHQ n44Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cTKAAm1y; 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 d19-20020ac85ad3000000b0040fd25c76e5si6668533qtd.586.2023.11.06.19.06.46 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 06 Nov 2023 19:06:46 -0800 (PST) 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=cTKAAm1y; 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 1r0CPR-00018j-Jv; Mon, 06 Nov 2023 22:05:45 -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 1r0COY-000787-Aw for qemu-devel@nongnu.org; Mon, 06 Nov 2023 22:04:52 -0500 Received: from mail-pl1-x62b.google.com ([2607:f8b0: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 1r0COL-0000hT-6n for qemu-devel@nongnu.org; Mon, 06 Nov 2023 22:04:50 -0500 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1cc330e8f58so37335855ad.3 for ; Mon, 06 Nov 2023 19:04:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699326274; x=1699931074; 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=3B5AGwWmkfcW3PKZyiJ5NeRwC9XFMc7EJS0UPbJQ5t0=; b=cTKAAm1yJNzK7bdDlBt0GLvUj7/tZjZ0KhSJHtanKtqBrruChjWyC3elpGl+AJiHlw VG0rf/CO28It3bZ3SLaNCcz4mq+Kjfeiy1qLftsuEeev+/E3it16NHlf0e1GUOU/jWfy jp9bxtHhDv/PmU4rrEcHvLV0q5ao0xa+ZECKbIntKZV7P0X4npHgSvEiNrUjhMwNmTEq VokI513C/AZeFxqBv1kis8htPJ8JjQWdsowhjavOxdGvi9nflGtmm8eLXeDSLL5DqiF7 ZibHqZuTUlJgFtGKxQQtxrSIDTtAQtIVUJTfcWCJ9ExLRT02i90CeNfQT7o0nYDNeguy fSxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699326274; x=1699931074; 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=3B5AGwWmkfcW3PKZyiJ5NeRwC9XFMc7EJS0UPbJQ5t0=; b=ULy5CIW2/S5gZnUEK+1ArncoTduihrWtJOZvQQWbQJSgKqqnxK9QCfcjuwlk0tfFr7 LYc4igpqS2ACaxvzuELIYV47lPUzzyhn6IWSTfOQQUz9cg54mFb8BnPmsFbnRlahn5rd tEPLzPstxyD86QAOAa5TmxVELVdjktvkqd9OZDgjc+Pg2V6EjiRxbW8QmrKqWnzZAeY5 IGs7po79pLwBgKiNt6De6WW80Ps1nLvGOud6+04V5XDlgPWN6on5BTUVW/Za8Z/nUeiY V025vcAaANge8JRG2ajHlf1CwHy3agGmd1goQNaBXjAGf99w6szZon4bP16PcNPm9hu+ Iraw== X-Gm-Message-State: AOJu0YwpZsTNeqbe0ChE/wS0AyIamdCJkrKyV3pHxxhyj7qIpsUGdM9h 3z85TyBDF6MRPC0/ag/lO2DYGqQwzZ7u1Si4C9k= X-Received: by 2002:a17:902:bc42:b0:1ca:87e0:93e3 with SMTP id t2-20020a170902bc4200b001ca87e093e3mr26242256plz.7.1699326274465; Mon, 06 Nov 2023 19:04:34 -0800 (PST) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id u9-20020a17090282c900b001c72d5e16acsm6518012plz.57.2023.11.06.19.04.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 19:04:34 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 35/85] linux-user/hppa: Fixes for TARGET_ABI32 Date: Mon, 6 Nov 2023 19:03:17 -0800 Message-Id: <20231107030407.8979-36-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231107030407.8979-1-richard.henderson@linaro.org> References: <20231107030407.8979-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-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, T_SCC_BODY_TEXT_LINE=-0.01 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 17920e9ceb..d08a97dae6 100644 --- a/linux-user/hppa/signal.c +++ b/linux-user/hppa/signal.c @@ -86,7 +86,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]); @@ -150,10 +150,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; }