From: Stefan Markovic <smarko...@wavecomp.com>

Add fields that correspond to kernel arch_elf_state.

This is essentially copied from kernel arch/mips/kernel/elf.c.

Signed-off-by: Stefan Markovic <smarko...@wavecomp.com>
Signed-off-by: Aleksandar Markovic <amarko...@wavecomp.com>
---
 linux-user/qemu.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/linux-user/qemu.h b/linux-user/qemu.h
index b4959e4..e5e7bcd 100644
--- a/linux-user/qemu.h
+++ b/linux-user/qemu.h
@@ -60,6 +60,15 @@ struct image_info {
         abi_ulong       pt_dynamic_addr;
         abi_ulong       interpreter_loadmap_addr;
         abi_ulong       interpreter_pt_dynamic_addr;
+
+        /* The fields that correspond to kernel arch_elf_state structure. */
+#if defined TARGET_MIPS
+        uint32_t        nan_2008;
+        uint32_t        fp_abi;
+        uint32_t        interp_fp_abi;
+        uint32_t        overall_fp_mode;
+#endif /* TARGET_MIPS */
+
         struct image_info *other_info;
 };
 
-- 
2.7.4


Reply via email to