diff mbox series

[4/6] Read and set FP ABI value from MIPS abiflags

Message ID 1540563667-23300-5-git-send-email-stefan.markovic@rt-rk.com
State New
Headers show
Series target/mips: Add support for prctl() PR_GET_FP_MODE and PR_SET_FP_MODE | expand

Commit Message

Stefan Markovic Oct. 26, 2018, 2:21 p.m. UTC
From: Stefan Markovic <smarkovic@wavecomp.com>

Signed-off-by: Stefan Markovic <smarkovic@wavecomp.com>
---
 linux-user/elfload.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Aleksandar Markovic Oct. 26, 2018, 4:07 p.m. UTC | #1
> Subject: [PATCH 4/6] Read and set FP ABI value from MIPS abiflags
>
> From: Stefan Markovic <smarkovic@wavecomp.com>
> 
> Signed-off-by: Stefan Markovic <smarkovic@wavecomp.com>
> ---

A short commit message is needed. Other than that:

Reviewed-by: Aleksandar Markovic <amarkovic@wavecomp.com>
diff mbox series

Patch

diff --git a/linux-user/elfload.c b/linux-user/elfload.c
index 5881233..5bccd2e 100644
--- a/linux-user/elfload.c
+++ b/linux-user/elfload.c
@@ -2396,6 +2396,7 @@  static void load_elf_image(const char *image_name, int image_fd,
                 }
             }
             bswap_mips_abiflags(&abiflags);
+            info->fp_abi = abiflags.fp_abi;
 #endif
         }
     }
@@ -2708,6 +2709,9 @@  int load_elf_binary(struct linux_binprm *bprm, struct image_info *info)
             target_mmap(0, qemu_host_page_size, PROT_READ | PROT_EXEC,
                         MAP_FIXED | MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
         }
+#ifdef TARGET_MIPS
+        info->interp_fp_abi = interp_info.fp_abi;
+#endif
     }
 
     bprm->p = create_elf_tables(bprm->p, bprm->argc, bprm->envc, &elf_ex,