From nobody Mon Feb 9 19:08:55 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1586657370; cv=none; d=zohomail.com; s=zohoarc; b=kRM1KtObOJDrQOfdHcBpspR5NKJZrhSEnsfuPH3ITBwY7ykp/EyUR5MndgmoPdKZnKxm75u/dQutBXFS0tmJ4ECxNucApycDDK4fE5pmINdNXvshfOnUS5FFKK540c/x9FycDD1ou02zfYkGkXz02521hA6h1Mvo9340z6yrhHw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1586657370; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=e3E6n03EvShaj5215bef65t5qCdl8XP4Kd7UXpVs7GE=; b=RWAHkReggdXu5LFQQgwa9fMGB8Kyr3HH0JRmhNAOqNpwxjMzlmdsceZZdOgl7+/3MYFbVsIRLALHJEb72Wvct6lstNMzgiWulGd4d9ng9oX0g6MK8zzpW6AtT5+Y8W79fp51PSf0UFYEU9yIPKkICR1WwJ5766aGp6+RICLhK4Q= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1586657370120212.87909134305846; Sat, 11 Apr 2020 19:09:30 -0700 (PDT) Received: from localhost ([::1]:58092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNS3r-0003WL-Vu for importer@patchew.org; Sat, 11 Apr 2020 22:09:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46500) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNS3A-0002xP-CR for qemu-devel@nongnu.org; Sat, 11 Apr 2020 22:08:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jNS38-0000Dj-OH for qemu-devel@nongnu.org; Sat, 11 Apr 2020 22:08:44 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:37177) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jNS38-0000Cw-D5; Sat, 11 Apr 2020 22:08:42 -0400 Received: from L-PF1D6DP4-1208.hz.ali.com(mailfrom:zhiwei_liu@c-sky.com fp:SMTPD_---.HF0TmGm_1586657312) by smtp.aliyun-inc.com(10.147.42.135); Sun, 12 Apr 2020 10:08:33 +0800 X-Alimail-AntiSpam: AC=CONTINUE; BC=0.1767189|-1; CH=green; DM=|CONTINUE|false|; DS=CONTINUE|ham_system_inform|0.00848618-8.78409e-05-0.991426; FP=0|0|0|0|0|-1|-1|-1; HT=e02c03302; MF=zhiwei_liu@c-sky.com; NM=1; PH=DS; RN=8; RT=8; SR=0; TI=SMTPD_---.HF0TmGm_1586657312; From: LIU Zhiwei To: richard.henderson@linaro.org, alistair23@gmail.com, palmer@dabbelt.com Subject: [PATCH] linux-user/riscv: fix up struct target_ucontext definition Date: Sun, 12 Apr 2020 10:08:30 +0800 Message-Id: <20200412020830.607-1-zhiwei_liu@c-sky.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 121.197.200.217 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: wenmeng_zhang@c-sky.com, qemu-riscv@nongnu.org, qemu-devel@nongnu.org, wxy194768@alibaba-inc.com, LIU Zhiwei Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" As struct target_ucontext will be transfered to signal handler, it must keep pace with struct ucontext_t defined in Linux kernel. Signed-off-by: LIU Zhiwei --- linux-user/riscv/signal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linux-user/riscv/signal.c b/linux-user/riscv/signal.c index 83ecc6f799..67a95dbc7b 100644 --- a/linux-user/riscv/signal.c +++ b/linux-user/riscv/signal.c @@ -40,8 +40,9 @@ struct target_ucontext { unsigned long uc_flags; struct target_ucontext *uc_link; target_stack_t uc_stack; - struct target_sigcontext uc_mcontext; target_sigset_t uc_sigmask; + uint8_t __unused[1024 / 8 - sizeof(target_sigset_t)]; + struct target_sigcontext uc_mcontext QEMU_ALIGNED(16); }; =20 struct target_rt_sigframe { --=20 2.23.0