From patchwork Tue Oct 3 17:30:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 728785 Delivered-To: patch@linaro.org Received: by 2002:a5d:60c8:0:b0:31d:da82:a3b4 with SMTP id x8csp2264833wrt; Tue, 3 Oct 2023 10:43:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGzEqfdkNrA0rkTuZbdvA1NZySBgYRDOIjvhL6wvMyGD9J+qXJa+unaOZwzS+v/JcikWUfi X-Received: by 2002:a05:620a:394f:b0:775:6a43:931d with SMTP id qs15-20020a05620a394f00b007756a43931dmr314057qkn.25.1696355026430; Tue, 03 Oct 2023 10:43:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696355026; cv=none; d=google.com; s=arc-20160816; b=BuvOUibaubQjy9KeD2IYg1JqgkWBalAOH1TWwTPO/4Eb1vzMF2mp/xRTpZGKJ8FBpS 0XeM5Y6Y8mK18WdMG6fAFXg1gxdz7EDbYFE/yHM0lQGNj4GBjxhOOYUZQ0Kmx09oS/dM FRxwSRe7HqmGCVCEmXroZ1fT6ISIB+tWHbyi5wCIPe9akVCO+RaZlLSHeP9KW8AY/+Pe cXDLpOUl/tgJDvGtJc3YJN2GYPpE/RWHiC8b75KfRJE2xI5q+HZrNps/pVxr8/j2fDvr p7VFk+fPJeDnkk3HMY/LqQo2fiQo46eoXebTF7ZdRjO+VBIfbJW9TzV6SV6zEwBgQif9 8WZw== 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=RJpiHuW5NzBqBoQ7rF1AOmovpcCQYs1V1KtFbKMhZnE=; fh=kQadAhxV42GJ3cd2VUw1RyURv/zJQGvmUdF7iLEVTtc=; b=csF4bfqVPlX/6wXrg0j6Ncfx6rwRTSgipPlEbbl4lVFEuIiP5B+HP5GORkZYac8RbG 0k9bxp9kgXCCOu3/oTQvg/UdLi67i0Mpg/sQbVrYp/fPXuM6wD8UqBm859Nat2pKf9Rt +TaxBbfZbTiZoWiI69FzgwE5FB4h74wy904+EnQhbzIymmk5fNWnm1OAPy3H2Gl6IbRE bpE9lP++8fiZEtr7/Un+usVmPw+nMU4QbmRNWA/9NhkgZI7NDZ9mlbLFwCDdiLeJ/LX/ DadQZBZaDoJKyielCgwGDOB6mnGjYY9FO6qM0rA/P6XxhfpHs5VzvkhTiAEocFCdJ/mA g6iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BAaOd0Op; 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 w18-20020a05620a445200b00773c6574082si719397qkp.529.2023.10.03.10.43.46 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Oct 2023 10:43:46 -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=BAaOd0Op; 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 1qnjIs-0000TI-8J; Tue, 03 Oct 2023 13:35:29 -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 1qnjIE-0000Ao-Of for qemu-devel@nongnu.org; Tue, 03 Oct 2023 13:34:50 -0400 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qnjIB-0007si-Or for qemu-devel@nongnu.org; Tue, 03 Oct 2023 13:34:45 -0400 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1bdf4752c3cso8614405ad.2 for ; Tue, 03 Oct 2023 10:34:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696354482; x=1696959282; 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=RJpiHuW5NzBqBoQ7rF1AOmovpcCQYs1V1KtFbKMhZnE=; b=BAaOd0OpoiKhuMXbR5f4TRMx/CQbls22ybcalcen3fy6qhd3NsQ2SQlxhwY/Q3vEcy FK9chUpO65TQNkoUPog2Wf3TjvXOX6aShrFIf2iS8he4jxW3K8BgIdi+heaTTkYXTX5w nGpd96JYsOYkclR9DsZZuLv5nGKZ3G6dMkkbewhMCGwbru1VQRd5YpFfjXMLG36wq7GS zchpaQQOOEVNSPH+D5dYv3yxqGCK/ZssQ0YwgVUVMZ4K1CKlu86pfFf/8ThVen9YQNKD KvlGLq18+pre6X2+q+fxZlKJHwHpVitKq6MhZrFi00h0xs5tgbyYsmFrLhgbG+uEL2UN /dJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696354482; x=1696959282; 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=RJpiHuW5NzBqBoQ7rF1AOmovpcCQYs1V1KtFbKMhZnE=; b=OYaVpU22uyFCJjhJqECWHnqsjdagCMCvqXVFKdSt/YD90xts+2bsuCFFKnnp3ZiVmO izsuVo5//alNB39lji9ezOl7VtVx5xzi/Vocs6yBWBWXGADfdpGytGjvSpTP2+iN/SHI wg0DD3zxrniTj9mvErLLN9Hmo+pb2sR/HxVSy6npMCVu3lGKcMGNtBQDspYOgSUfdiWW cS7r4p6TB+kufyXrdvEiJS0omMY4ziXBNL7LKbqajrf64uM7YNRoBnU4gzjHJtjZdSSf Yw9q5D8wyUBnA8OP6NH6WfY1yvlFoNjPHegO6KwbAQ3Ii6U/hBrfjRL3WpYC72D+rBla fI0w== X-Gm-Message-State: AOJu0YyfekpBS+BCys129TZrw58gEvU7pX7ia/ovoB4ZEjyROVBTWP/v ZA3xRrXHRPGiFLoZX4/ANdEXSa/lG+WIjUNq3bA= X-Received: by 2002:a17:903:11d2:b0:1b8:8b72:fa28 with SMTP id q18-20020a17090311d200b001b88b72fa28mr263280plh.58.1696354482458; Tue, 03 Oct 2023 10:34:42 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id y9-20020a17090322c900b001bc676df6a9sm1855118plg.132.2023.10.03.10.34.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 10:34:41 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 44/47] linux-user/hppa: Fix struct target_sigcontext layout Date: Tue, 3 Oct 2023 10:30:49 -0700 Message-Id: <20231003173052.1601813-45-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231003173052.1601813-1-richard.henderson@linaro.org> References: <20231003173052.1601813-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62a.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 Use abi_ullong not uint64_t so that the alignment of the field and therefore the layout of the struct is correct. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- linux-user/hppa/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;