From patchwork Thu Nov 9 13:58:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 742579 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:110f:b0:32d:baff:b0ca with SMTP id z15csp855350wrw; Thu, 9 Nov 2023 06:06:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IFaOJqyvJL/z1CAu1dy5qBFZ+7ZfGFS+CV4V6xh5qxfkAhYJne+64pdpLyKgbZ7O8MtxTPP X-Received: by 2002:a05:6000:2c2:b0:32f:8c9a:67 with SMTP id o2-20020a05600002c200b0032f8c9a0067mr6559220wry.0.1699538810852; Thu, 09 Nov 2023 06:06:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699538810; cv=none; d=google.com; s=arc-20160816; b=juYG0ukgs3xQNpqjvoh2+0HDa+sHBkTkPlKImN6Je1G6ywxN5MidOGyoXy/owGk84l Epjm4p3XHVXTvFRIK1MW8gzfcpFiGGzrlFdMqBX42dpMkr+CfooJyA4r7t2bGHlGtHT5 ub5rUYTWmKLaTRApKNdxGiRaBPI+DaS+AoBx4cASFxMFRTY9XC9EYLnGlfMNClL1cHZ6 Rc1pv8WBEcQNKdod5nT1uPXhU7I6Wn1G8LlsVhWvXEShMHh4aytTYz/6bHzK5UwH3BPr DKtN6rDdYI29bKBDUglLi/eUVbmJ4WARcZYMy9+w1aS190YYJN6BSwh0oIO0wQTo74+k 592g== 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; bh=oBgRoti7O+7eP07J/jSBKsXBSeK+61S28et+vBG6Xi8=; fh=K4abbxCgZAPvqzOXA+PZ7RIZh+KufMVJze7rXLOwES0=; b=FRTs0P8+8RZEOb7EjWij3dbBK/FukCdbm2TVy2fsLdT3RY+9GlZz90CzcODPqYgLSu moCJ7DbK6TjHEFMHO0CxVjzRhijNI259ARkTz7GwXn613mCGqu+YiPk/t0B9HdznThlr djwN5JUgAksPHyUvmMAD3JMdFdNIg+AM1oU+2hawa4gIZzLs52rLu3BJYenrb7Mw446f ZrWCbvbTOGa+vWbfwE4u2B070XYKWFjlzR0K7gptOgUk5rwjiZHNO2XvRw3AqN0pDEez SgK6nJssiS77/VBrCO3og/3dmR1a3xapHWWY6E9dv/NcoS87Q77XSuONGvRXA/hxrLdu V+bA== ARC-Authentication-Results: i=1; mx.google.com; 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" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id k12-20020a5d66cc000000b0032f91cc1515si5385825wrw.950.2023.11.09.06.06.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Nov 2023 06:06:50 -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; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r15ei-0003Mg-HY; Thu, 09 Nov 2023 09:05:13 -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 1r15bq-00030Q-1V; Thu, 09 Nov 2023 09:02:14 -0500 Received: from isrv.corpit.ru ([86.62.121.231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r15bo-0006Sy-1v; Thu, 09 Nov 2023 09:02:13 -0500 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 58A7931BD3; Thu, 9 Nov 2023 16:59:56 +0300 (MSK) Received: from tls.msk.ru (mjt.wg.tls.msk.ru [192.168.177.130]) by tsrv.corpit.ru (Postfix) with SMTP id 63B963450C; Thu, 9 Nov 2023 16:59:48 +0300 (MSK) Received: (nullmailer pid 1462865 invoked by uid 1000); Thu, 09 Nov 2023 13:59:47 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Cc: qemu-stable@nongnu.org, Richard Henderson , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Michael Tokarev Subject: [Stable-7.2.7 29/62] linux-user/hppa: Fix struct target_sigcontext layout Date: Thu, 9 Nov 2023 16:58:57 +0300 Message-Id: <20231109135933.1462615-29-mjt@tls.msk.ru> X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Received-SPF: pass client-ip=86.62.121.231; envelope-from=mjt@tls.msk.ru; helo=isrv.corpit.ru X-Spam_score_int: -68 X-Spam_score: -6.9 X-Spam_bar: ------ X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, 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 From: Richard Henderson 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 (cherry picked from commit 33bc4fa78b06fc4e5fe22e5576811a97707e0cc6) Signed-off-by: Michael Tokarev 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;