[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
- [Qemu-devel] [PATCH v5 00/28] Misc MIPS fixes and improvements for October 2018, Aleksandar Markovic, 2018/10/12
- [Qemu-devel] [PATCH v5 01/28] elf: Fix PT_MIPS_XXX constants, Aleksandar Markovic, 2018/10/12
- [Qemu-devel] [PATCH v5 03/28] elf: Add Mips_elf_abiflags_v0 structure, Aleksandar Markovic, 2018/10/12
- [Qemu-devel] [PATCH v5 04/28] linux-user: Add MIPS-specific prctl() options, Aleksandar Markovic, 2018/10/12
- [Qemu-devel] [PATCH v5 02/28] elf: Add MIPS_ABI_FP_XXX constants, Aleksandar Markovic, 2018/10/12
- [Qemu-devel] [PATCH v5 05/28] linux-user: Add infrastructure for handling MIPS-specific prctl(), Aleksandar Markovic, 2018/10/12
- [Qemu-devel] [PATCH v5 06/28] linux-user: Add fields that correspond to kernel arch_elf_state, Aleksandar Markovic, 2018/10/12
- [Qemu-devel] [PATCH v5 07/28] linux-user: Add the field for kernel thread info flags,
Aleksandar Markovic <=
- [Qemu-devel] [PATCH v5 08/28] target/mips: Add CPO PWBase register, Aleksandar Markovic, 2018/10/12
- [Qemu-devel] [PATCH v5 09/28] target/mips: Add CPO PWField register, Aleksandar Markovic, 2018/10/12
- [Qemu-devel] [PATCH v5 10/28] target/mips: Add CPO PWSize register, Aleksandar Markovic, 2018/10/12
- [Qemu-devel] [PATCH v5 11/28] target/mips: Add CPO PWCtl register, Aleksandar Markovic, 2018/10/12
- [Qemu-devel] [PATCH v5 12/28] target/mips: Add reset state for PWSize and PWField registers, Aleksandar Markovic, 2018/10/12
- [Qemu-devel] [PATCH v5 13/28] target/mips: Implement hardware page table walker, Aleksandar Markovic, 2018/10/12