From nobody Mon Feb 9 10:39:03 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.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 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1539362863106887.92330822968; Fri, 12 Oct 2018 09:47:43 -0700 (PDT) Received: from localhost ([::1]:41656 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gB0bF-0003VI-Vc for importer@patchew.org; Fri, 12 Oct 2018 12:47:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gB0WK-0008Vk-P4 for qemu-devel@nongnu.org; Fri, 12 Oct 2018 12:42:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gB0WD-0003XV-Q1 for qemu-devel@nongnu.org; Fri, 12 Oct 2018 12:42:34 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:46438 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 1gB0WD-0003Vx-0X for qemu-devel@nongnu.org; Fri, 12 Oct 2018 12:42:29 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id C025F1A4130; Fri, 12 Oct 2018 18:42:27 +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 A4E491A246A; Fri, 12 Oct 2018 18:42:27 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Fri, 12 Oct 2018 18:39:15 +0200 Message-Id: <1539362376-12010-8-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1539362376-12010-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1539362376-12010-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v5 07/28] linux-user: Add the field for kernel thread info flags X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: smarkovic@wavecomp.com, riku.voipio@iki.fi, richard.henderson@linaro.org, laurent@vivier.eu, amarkovic@wavecomp.com, pjovanovic@wavecomp.com, aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Stefan Markovic Add the field for kernel thread info flags. This is essentially copied form kernel header mips/include/asm/thread_info.h. Signed-off-by: Stefan Markovic Signed-off-by: Aleksandar Markovic --- linux-user/qemu.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/linux-user/qemu.h b/linux-user/qemu.h index e5e7bcd..57f3004 100644 --- a/linux-user/qemu.h +++ b/linux-user/qemu.h @@ -23,6 +23,13 @@ */ #define SIGSET_T_SIZE (_NSIG / 8) =20 +#if defined TARGET_MIPS +#define TIF_32BIT_FPREGS 27 /* 32-bit floating point registers */ +#define TIF_HYBRID_FPREGS 28 /* 64b FP registers, odd singles */ + /* in bits 63:32 of even doubles */ +#define TIF_MSA_CTX_LIVE 30 /* MSA context must be preserved */ +#endif /* TARGET_MIPS */ + /* This struct is used to hold certain information about the image. * Basically, it replicates in user space what would be certain * task_struct fields in the kernel @@ -69,6 +76,11 @@ struct image_info { uint32_t overall_fp_mode; #endif /* TARGET_MIPS */ =20 + /* The fields that correspond to kernel thread info flags. */ +#if defined TARGET_MIPS + abi_ulong thread_info_flags; +#endif /* TARGET_MIPS */ + struct image_info *other_info; }; =20 --=20 2.7.4