Message ID | 20230930212742.586468-1-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:60c8:0:b0:31d:da82:a3b4 with SMTP id x8csp1063616wrt; Sat, 30 Sep 2023 14:28:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFIwIsyBHa7OvsKnLiDkJeambpumzl7ZvIx3Z3fCIW+/V+LnJ8Y9IbUhPvps+o4FBGWSEye X-Received: by 2002:a0c:8bc9:0:b0:65b:21db:fd21 with SMTP id a9-20020a0c8bc9000000b0065b21dbfd21mr7327237qvc.48.1696109338293; Sat, 30 Sep 2023 14:28:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696109338; cv=none; d=google.com; s=arc-20160816; b=pgP9EVvRNxtOZebtkN2ka3TdlAxYfe+5YdTnv289B2m+tZVcSftIb7EfafXC74C9r6 Bx90vImLLcbHoJ+0GkIiEOU0J8aln1eEGk46peStbh6nNzSh+IRUiQHQcgV0jMjoCK94 BgnV4jaO60aGHxIE4mJYZKQJwe56IiUzQaoW7deAGdAPp9Etysp4jahWtrW7wItVUVe5 DghSf2SrIp6ytDH010DIbJ8zlJfS8gUuX8+AbWKjdBXCx8ArF9yi2nxQWtRG8HPycjSC DZulH+58qUbWwlbIjXDpNmguLL7hO3p+/kOOejyybxYf1fi8zhvImlEjDNZK5xBx7HAe WIwg== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=xC37eoqg+2YbZz3c8BLdow0ua6W9XsMYlANpVl/9Uws=; fh=f2WZoDMBYjCKWIIOoPI+rQtxlv4fmOm4u+dLdQLqpOk=; b=xkno3SAwxX6pCVvCIUvAGH35xahDB5/iU9GDCpQtlj86MGkZtfIBHR/EXmFWxBBFg3 slSoajPoZpCOy/7p453B9kmgtip3KMA8qJFIcYHf3wF21Vy3wx16z7gFzV8YzkmVt+AN 3vHFhJdRxe5n991UBjb0sZG6JGFRBwP1h251yyKRqdGFr+SBlonTwQ+tl7JQruD5YH/H wOnvqpku9QWkqAf79C6fsBOSRwd1rGwAhD4SoFpZvzGYu53XjfskvnltFwAMfZbUk7UH AhUWftFxnvdXq1REvZOeUDCBvShr6zXET45448OSe2RjAvS8xCJ5noKDAJifewUw0BTa RNNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K7xrpMw8; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id x2-20020a05620a0ec200b0076d763ffd49si10672302qkm.66.2023.09.30.14.28.58 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 30 Sep 2023 14:28:58 -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=K7xrpMw8; 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 <qemu-devel-bounces@nongnu.org>) id 1qmhV8-000617-30; Sat, 30 Sep 2023 17:27:50 -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 <richard.henderson@linaro.org>) id 1qmhV6-00060g-AP for qemu-devel@nongnu.org; Sat, 30 Sep 2023 17:27:48 -0400 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1qmhV4-0007K9-Nb for qemu-devel@nongnu.org; Sat, 30 Sep 2023 17:27:47 -0400 Received: by mail-pg1-x532.google.com with SMTP id 41be03b00d2f7-5859a7d6556so1718276a12.0 for <qemu-devel@nongnu.org>; Sat, 30 Sep 2023 14:27:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696109264; x=1696714064; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=xC37eoqg+2YbZz3c8BLdow0ua6W9XsMYlANpVl/9Uws=; b=K7xrpMw83Rq67jvUtkAyNrDh+Ie5o7i/ssTOEQVvQNtmdqY6lIyP49DtEcY31xFxdu ZRaH1ELRzwfFa+I6ddFhz6TUSWjOAEaCIwGIeIqypSOj8kV4ur3uegt1OCdb50EfBQia 7VkenbfQrwFDI2/u+Sxmyg3fkYgcT9Mg1scMHDjaln2fQ1y+f7AxuyEuKwmzUTydI2kY WoTdZv7pg4irlF6I7Ft05JRqhziM8v6VJVzLoHo8CWonV4cMxdyYlyOygbAITWuMuI1B eS47nwum/pHnE3UknjiZ0rADks9GrP7V6HS+6G1r9xleAtF4fkpjzzCRCrantKVaLHCg zXKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696109264; x=1696714064; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xC37eoqg+2YbZz3c8BLdow0ua6W9XsMYlANpVl/9Uws=; b=ZdsPIeNIyHE3WPR+m4bWqpbguE8Vxo58sEZ3C0MO1VbYcL7AUMM8BrtFEvz/O1ZRS0 0Ulb6KCxDPZIVIiPXiYUxipOjZzHtdgXmaYnH1w90lTaiWh8thBnzMwzG+r9tin+CN+z /FkIgxmOu+Q0TULMzCK/smtOCySekfRuxFkWWF8lPGfoSL7aXlBonCjG3sICqMTngblI QrFGJN8ooLfR4qaniWT645EKFSvEeKrelAp67bdAFc8TVNlF/rhi9JbWuOqLw5sRMfPq yUvR1skFmI//AYBkaDJiaae7z+Swoyu1G4YM+GndzWrcfj5WhALjgWOEYaAv+fXCiWxV 43sQ== X-Gm-Message-State: AOJu0YzZa5zysgsm2YbG4hk8AqXkBWiXz4n2QIJvT7mjVksBsvd0ylYH BSqYK+iTLLUm1FUio5MV9XQjamlan3fRSCUaO80= X-Received: by 2002:a05:6a21:3388:b0:14c:3218:c1bd with SMTP id yy8-20020a056a21338800b0014c3218c1bdmr10586882pzb.11.1696109263868; Sat, 30 Sep 2023 14:27:43 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id mv11-20020a17090b198b00b00274a43c3414sm3561532pjb.47.2023.09.30.14.27.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 14:27:43 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: deller@gmx.de Subject: [PATCH] linux-user/hppa: Fix struct target_sigcontext layout Date: Sat, 30 Sep 2023 14:27:42 -0700 Message-Id: <20230930212742.586468-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::532; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x532.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
linux-user/hppa: Fix struct target_sigcontext layout
|
expand
|
On 30/9/23 23:27, Richard Henderson wrote: > Use abi_ullong not uint64_t so that the alignment of the field > and therefore the layout of the struct is correct. > > Signed-off-by: Richard Henderson <richard.henderson@linaro.org> > --- > linux-user/hppa/signal.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
diff --git a/linux-user/hppa/signal.c b/linux-user/hppa/signal.c index bda6e54655..ec5f5412d1 100644 --- a/linux-user/hppa/signal.c +++ b/linux-user/hppa/signal.c @@ -25,7 +25,7 @@ struct target_sigcontext { abi_ulong sc_flags; abi_ulong sc_gr[32]; - uint64_t sc_fr[32]; + abi_ullong sc_fr[32]; abi_ulong sc_iasq[2]; abi_ulong sc_iaoq[2]; abi_ulong sc_sar;
Use abi_ullong not uint64_t so that the alignment of the field and therefore the layout of the struct is correct. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- linux-user/hppa/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)