summaryrefslogtreecommitdiffstats
path: root/linux-user/syscall_defs.h
diff options
context:
space:
mode:
authorRichard Henderson2019-04-27 00:20:51 +0200
committerRichard Henderson2019-05-19 16:30:03 +0200
commit21ba856499f9c0ccdc05ed04432df059ae76b337 (patch)
tree6abdfdcadf3436ae79faf616c47f5f8fdd41d7f7 /linux-user/syscall_defs.h
parenttarget/alpha: Clean up alpha_cpu_dump_state (diff)
downloadqemu-21ba856499f9c0ccdc05ed04432df059ae76b337.tar.gz
qemu-21ba856499f9c0ccdc05ed04432df059ae76b337.tar.xz
qemu-21ba856499f9c0ccdc05ed04432df059ae76b337.zip
target/alpha: Fix user-only floating-point exceptions
Record the software fp control register, as set by the osf_setsysinfo syscall. Add those masked exceptions to fpcr_exc_enable. Do not raise a signal for masked fp exceptions. Fixes: https://bugs.launchpad.net/bugs/1701835 Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user/syscall_defs.h')
-rw-r--r--linux-user/syscall_defs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
index 12c8407144..1f5b2d18db 100644
--- a/linux-user/syscall_defs.h
+++ b/linux-user/syscall_defs.h
@@ -635,7 +635,8 @@ typedef struct target_siginfo {
#define TARGET_FPE_FLTRES (6) /* floating point inexact result */
#define TARGET_FPE_FLTINV (7) /* floating point invalid operation */
#define TARGET_FPE_FLTSUB (8) /* subscript out of range */
-#define TARGET_NSIGFPE 8
+#define TARGET_FPE_FLTUNK (14) /* undiagnosed fp exception */
+#define TARGET_NSIGFPE 15
/*
* SIGSEGV si_codes