qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v5 07/28] linux-user: Add the field for kernel threa


From: Aleksandar Markovic
Subject: [Qemu-devel] [PATCH v5 07/28] linux-user: Add the field for kernel thread info flags
Date: Fri, 12 Oct 2018 18:39:15 +0200

From: Stefan Markovic <address@hidden>

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 <address@hidden>
Signed-off-by: Aleksandar Markovic <address@hidden>
---
 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)
 
+#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 */
 
+        /* 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;
 };
 
-- 
2.7.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]