From nobody Tue Feb 10 06:07:26 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=1563523644; cv=none; d=zoho.com; s=zohoarc; b=I+buArxdvg4E4tFPYZ0dyR/KnlOLRorqOiSLtNXnh0krC1GvDxYvp/RuV7AjEJ0HnuI4spML1M2+u9gq9HxIBjM3RYD7u8pU7UrJkCW6/5Uu2bk1DG4MA3R69nLiYzIh/K8b0l2D3ZGst5iVBBZYtH6FM/eLvno3FQgcrlfThA8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1563523644; 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=T7c762ltkPZsddDreMjetJ5kZ+qZnO9KQ6Ctq5aEOyZ/j2MFsOT+w83QKqrtoStMyou+QQVgWxp5LXsnyM6pyJAzkyLJmAP7MIw3WLTpze7SY0Z3AG2Clnmo6B/nQYU7QHOZw/s21lKl7h35wP+mcNAoSQXTdxI8pt+P/fr3woU= 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 156352364468862.73821297297161; Fri, 19 Jul 2019 01:07:24 -0700 (PDT) Received: from localhost ([::1]:42908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hoNvH-000744-A2 for importer@patchew.org; Fri, 19 Jul 2019 04:07:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44652) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hoNut-0005kA-01 for qemu-devel@nongnu.org; Fri, 19 Jul 2019 04:06:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hoNuq-0004fE-Q9 for qemu-devel@nongnu.org; Fri, 19 Jul 2019 04:06:58 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:59065) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hoNuq-0004eY-HR for qemu-devel@nongnu.org; Fri, 19 Jul 2019 04:06:56 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MIyiY-1i8eqQ3Xek-00KMeY; Fri, 19 Jul 2019 10:06:17 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Fri, 19 Jul 2019 10:06:08 +0200 Message-Id: <20190719080610.1607-2-laurent@vivier.eu> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190719080610.1607-1-laurent@vivier.eu> References: <20190719080610.1607-1-laurent@vivier.eu> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:dgqKW6Sk5FAX+oktD3tKuBxMmTxCzDZxjHuVtFqncFeX+B4aiq+ IojO3Rs9hWGDAY/m39nIHgw1hD+YFnZM8gfA+a7qbC9m2Aoj1pgwZ9Ex14RLa0Sdo6C64rw ZSgP6IQ9p+6fQ3OhprukR3o/lQaByQ4F1nByIIlTSSQr30dfQWd8+B4H/3qyD0beZfnm1x7 vxtQYCPqbZMZW+Hmo8YGg== X-UI-Out-Filterresults: notjunk:1;V03:K0:jVbdCNNlpwY=:y+Cb/4BYXugQsbWqNfiCM/ mglNFxPLmJjqo9t6yWn7FLd+jaN7shR02kho/YCRXQqA27AeWCqP6V5QXNBWx4/rFPTnEVa1X YCiRKH+Y7GD+bN8Z6MtlQ7uUkxPSSoZOj7szgJvmUpa+QHTGA47IdWFXuMlg2H2x7fHGE5AiR +/1KBSnXRGaILk59IFdD3fEDgYFNzYPwS9O6PD5dgDXPJgWQg9KIa1yj/pq5a8vFzE8p8Iwfc Ntqu8OO9uijtsfEc0tVmpqPGUYo+5PO+sFVGo1gBJWLD78uwcdEjp9ot/YAAKYh+0UQhGsFcB qnx349puyVZ06SHXsNJvoL7583JVZYPDtUkOawRDVe87/13AXJN2jIJgBHRyj/6spy2atld62 3pe/rc5uCA38cQNTjBj6Po77AKYUIuWUrL1Bgt+DGmglPA7cg3ZZriWOTO4Ja6Fvv9wvfsnA7 AWC655wX+4rcMuqSfmhykFdwCLzhzT0hIJASwdaOzyvcaeB8z00plGuPKctlLUlCAxxxCe8BW MVE7y82yLPimvycdMZM2W95DqJSKhZX0260/g1SCVzqM8FFSDkWpXnC1KXPlC56NAduQ/xlvq eUG6Osmw5ZzIowYIiJOkWNfBg0w/hMhFu/VFqjRjkHwRy7Td5EYdXBOVQm4Z+a+UvT/5RJyjT ljigyDAedheAnlR3RI23VbXaGpL8XDih0c7VgWDJ83pjE5L5hNU6bVYSo68ipSTFE9cMROdBr oVbfuZXPQkWYL/zBfv9gHQsLLHWaw3KiRpKr2w== 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 v2 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