From nobody Tue Feb 10 13:17:25 2026 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=1563375370; cv=none; d=zoho.com; s=zohoarc; b=Fy0oa7bV2iSTCVOzQj7Jkl8y06EaGio2cszd7+L86wI+OX0XB25ho+nhpwbny8ZfYueOZjVVB3IvkXbP7AWTSe/V/R+vtDDZDJDLfMaVpFY1UL99DcotPmSoASDqzcyY1biMcAVZKLVMrlXsyPx4ufbTySuC+ihw5RPRBAfzrlQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1563375370; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=SZ0ujUIQ4IrSzFKkyG/GPBUM6HBbJ1Rq3ukEZv1SMVM=; b=LDrCly/XEw7J7qxRSuuwAEMkL84P5YqVSyac7dbBilRMhsDIRiqENf15ntZZ3co5N42Egp5vdkNexc4qwxh5AnbEldobXmhnunlKtloXVA1V0E6RTCU7Q6vrDHIbdVD+0qgS4MSi3WAZxmj95NAvUFzHCJj1gugOCDKZjNSKG0Y= 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 (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1563375370281565.0455200694638; Wed, 17 Jul 2019 07:56:10 -0700 (PDT) Received: from localhost ([::1]:58130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnlLl-0006jY-Ac for importer@patchew.org; Wed, 17 Jul 2019 10:56:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48179) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnlL8-0004Hp-Qw for qemu-devel@nongnu.org; Wed, 17 Jul 2019 10:55:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hnlL4-0000mB-Jf for qemu-devel@nongnu.org; Wed, 17 Jul 2019 10:55:30 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:32921) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hnlL4-0000hI-8o for qemu-devel@nongnu.org; Wed, 17 Jul 2019 10:55:26 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MlfCk-1iDi8q3HQg-00ikdO; Wed, 17 Jul 2019 16:54:38 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Wed, 17 Jul 2019 16:54:16 +0200 Message-Id: <20190717145418.23883-2-laurent@vivier.eu> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190717145418.23883-1-laurent@vivier.eu> References: <20190717145418.23883-1-laurent@vivier.eu> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:/uU3Iw6FRkYlIr/YSJIBPhpggc9tLECLeDfacBj1X6GtMOXvI2J 7uc6i/JqcxopF3YG9yby5J5R47On3cLqHSCEN8Xo5Puln7/apPCPdTJPe3nur2NZSqMMh0l OppuH2pS08gJoWH96+OaSHEebGR3w5Zwtefbo/ROw/Z9wuO0VM+MY5SJU7PYGmUAZILQ3vx xhZbqgpoCxaMYi76167Kg== X-UI-Out-Filterresults: notjunk:1;V03:K0:tjIhIcauqoE=:xvlqiaOOeahjicl8gbn8eO i0bJrjnb3crBQiE46CtkgEuG1RC28lkLXsGw/ikntGMn8UX6qxiNsUCwW96CsNt/n6EL/mYHO 0VNpw5Ape5J4QI5bBhse1pcMn+7LL4n2nmWqEDHIFtQiz6U6Wa7VX4LTc/RAxNYcQBnd72AbW SEvwLpV7+1fGY4LERJ0e94GSdHyPRxbVAJAi/Rj9Hu0hvycET+FidbsoFrbAvTbacq0HB/W7u BbCzgRJeNDVdgKhAkorNdWRdwOcvd0Z500xlDyPBkJtoG/HZy0l4VSCG3mbSiqfqqYBJfe44Z UUuzDZX4WtTdRb4PYlkaIeOassdH7oCeF9+nvexD+y9bpnrnGNFdQa5yiF8hu8wivYEC//5Pk 1hzmF8oCdwIfRIE6dcbN0B9VqnEn67auDqmDZMYFDuifK3KGpabs8UTEiREOqBFq9D/PEyLjt mdHuCNka56tLgYJNCv++mNl/O1pYusVT01IMY2bSAGHMjSaG3RAOloIZWhOkp8qujSuKu1G/7 wC/eGVQlrxOgAz/2ZYM7xsHhWSLaUamU5w2R29IJkDJo1tfZnv/2BTHlsv5n64mCVFFfyZuKf 2pzf44XxNovU0EMV2CFpzLI5J5hQaKGbb1JUeLKnFinMf2ozoKdrS103lrHKbKPLvIrjbS883 u9yNWkOXrXqPIGI5fdfZswb9nUvAGYIF3XQyQAJkoCLYbANlqqdWOVpg+NfVmnDZoHwuHYtLh 60Orvy7cmUsHGxVIkMlyqy4a7+GK6FwgdFbr7g== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.126.135 Subject: [Qemu-devel] [PULL 1/3] 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: Dragan Mladjenovic , Aleksandar Rikalo , Riku Voipio , Laurent Vivier , Aleksandar Markovic , Paolo Bonzini , Aurelien Jarno , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" 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 Message-Id: <1562931470-3700-2-git-send-email-aleksandar.markovic@rt-rk.com> Signed-off-by: Laurent Vivier --- 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 6aa303ec9c16..455a8a229a83 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.21.0