From: Stefan Markovic <smarkovic@wavecomp.com>
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 <smarkovic@wavecomp.com>
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
---
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