qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v5 04/28] linux-user: Add MIPS-specific prctl() opti


From: Aleksandar Markovic
Subject: [Qemu-devel] [PATCH v5 04/28] linux-user: Add MIPS-specific prctl() options
Date: Fri, 12 Oct 2018 18:39:12 +0200

From: Stefan Markovic <address@hidden>

Add MIPS-specific prctl() options TARGET_PR_SET_FP_MODE and
TARGET_PR_SET_FP_MODE. These values are essentially copied from
linux kernel header include/uapi/linux/prctl.h.

This is done in a way consistent with a similar case of
aarch64-specific prctl() options TARGET_PR_SVE_SET_VL and
TARGET_PR_SVE_GET_VL.

Signed-off-by: Stefan Markovic <address@hidden>
Signed-off-by: Aleksandar Markovic <address@hidden>
---
 linux-user/mips/target_syscall.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/linux-user/mips/target_syscall.h b/linux-user/mips/target_syscall.h
index 2fca1c6..718680d 100644
--- a/linux-user/mips/target_syscall.h
+++ b/linux-user/mips/target_syscall.h
@@ -239,6 +239,10 @@ struct target_pt_regs {
 
 #define TARGET_FORCE_SHMLBA
 
+/* MIPS-specific prctl() options */
+#define TARGET_PR_SET_FP_MODE  45
+#define TARGET_PR_GET_FP_MODE  46
+
 static inline abi_ulong target_shmlba(CPUMIPSState *env)
 {
     return 0x40000;
-- 
2.7.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]