From nobody Sat May 18 04:46:19 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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 (zoho.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=1562271520; cv=none; d=zoho.com; s=zohoarc; b=WmVPqZPAphzZLBi/hCwgFIUKo7utLCH6iDFmRRniQtdilAUGu/Y8ZC4s6Hw7pVJh95OTV3RugHtu9p12RmlRsNLBkw7jZSewmmS57giSuGn9Q4vjmt9aoUyZLDHv6cKb5JVsrZRGHwEPs2WhPpvdDwaBzMamve4Km/t8YQoet14= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1562271520; h=Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=X/DAnBxxzz+b7Jx6UJSDrhkAqrz1Ots//PhjJ4JqhFA=; b=l9suS2BJpZPUgCFxJbUkQd4bgZYu2laibjmd5b1heI/kV6ZOlqjvDgeMYE+VfwBaUUzKZE+z/OlcgASY2J6VTWA7Dn/LBZZQn2rcw7G2qH5UflK9wDhbXjROQL/8G9gskD8DB+UMcjGhW/efbUtTtlg+CTVYJ+6Tp1CzXFiZMrE= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.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 (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1562271520284380.89012357969943; Thu, 4 Jul 2019 13:18:40 -0700 (PDT) Received: from localhost ([::1]:48592 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hj8Ba-0007Fd-Kp for importer@patchew.org; Thu, 04 Jul 2019 16:18:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43696) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hj8Am-0006Pv-Vr for qemu-devel@nongnu.org; Thu, 04 Jul 2019 16:17:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hj8Al-00044o-Le for qemu-devel@nongnu.org; Thu, 04 Jul 2019 16:17:40 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:37602 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hj8Al-00040c-Et for qemu-devel@nongnu.org; Thu, 04 Jul 2019 16:17:39 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 0592E1A204C; Thu, 4 Jul 2019 22:17:35 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id DF0A11A2061; Thu, 4 Jul 2019 22:17:34 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: laurent@vivier.eu, qemu-devel@nongnu.org Date: Thu, 4 Jul 2019 22:17:23 +0200 Message-Id: <1562271443-1797-1-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH for 4.1 v2] linux-user: Fix structure target_ucontext for MIPS 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: Aleksandar Markovic , Dragan Mladjenovic Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Structure ucontext for MIPS is defined in the following way in Linux kernel: (arch/mips/include/uapi/asm/ucontext.h, lines 54-64) struct ucontext { /* Historic fields matching asm-generic */ unsigned long uc_flags; struct ucontext *uc_link; stack_t uc_stack; struct sigcontext uc_mcontext; sigset_t uc_sigmask; /* Extended context structures may follow ucontext */ unsigned long long uc_extcontext[0]; }; Fix the structure target_ucontext for MIPS to reflect the definition above, except the correction for field uc_extcontext, which will follow at some later time. Fixes: 94c5495d Reported-by: Dragan Mladjenovic Signed-off-by: Aleksandar Markovic Reviewed-by: Laurent Vivier --- v2: rectified a commit message mistake with s/target_sigset_t/target_ucontext --- linux-user/mips/signal.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/linux-user/mips/signal.c b/linux-user/mips/signal.c index 6aa303e..455a8a2 100644 --- a/linux-user/mips/signal.c +++ b/linux-user/mips/signal.c @@ -71,10 +71,9 @@ struct sigframe { }; =20 struct target_ucontext { - target_ulong tuc_flags; - target_ulong tuc_link; + abi_ulong tuc_flags; + abi_ulong tuc_link; target_stack_t tuc_stack; - target_ulong pad0; struct target_sigcontext tuc_mcontext; target_sigset_t tuc_sigmask; }; --=20 2.7.4