target-alpha: Fixes for alpha-linux syscalls.
authorRichard Henderson <rth@twiddle.net>
Wed, 9 Dec 2009 23:56:29 +0000 (15:56 -0800)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 13 Dec 2009 19:32:36 +0000 (20:32 +0100)
commitcf1c8e8916d467cd2f1dd6a811c6e84894d13ca3
tree7366b9dcf6b064f59e4879bc517906c3af5fbdb2
parentde7e0cd27b1b9e1aef52536183e9aac205500dce
target-alpha: Fixes for alpha-linux syscalls.

1. Add correct definitions of error numbers.
2. Implement SYS_osf_sigprocmask
3. Implement SYS_osf_get/setsysinfo for IEEE_FP_CONTROL.

This last requires exposing the FPCR value to do_syscall.
Since this value is actually split up into the float_status,
expose routines from helper.c to access it.

Finally, also add a float_exception_mask field to float_status.
We don't actually use it to control delivery of exceptions to
the emulator yet, but simply hold the value that we placed there
when loading/storing the FPCR.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
fpu/softfloat.h
linux-user/alpha/syscall.h
linux-user/syscall.c
target-alpha/cpu.h
target-alpha/helper.c
target-alpha/op_helper.c