diff mbox series

[v5,06/28] linux-user: Add fields that correspond to kernel arch_elf_state

Message ID 1539362376-12010-7-git-send-email-aleksandar.markovic@rt-rk.com
State New
Headers show
Series Misc MIPS fixes and improvements for October 2018 | expand

Commit Message

Aleksandar Markovic Oct. 12, 2018, 4:39 p.m. UTC
From: Stefan Markovic <smarkovic@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 <smarkovic@wavecomp.com>
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
---
 linux-user/qemu.h | 9 +++++++++
 1 file changed, 9 insertions(+)
diff mbox series

Patch

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;
 };