In order for kernel to capture each denormalized output, the UDF trapping enable bit is always raised in $fpcsr. Because underflow case will issue not an underflow exception but also an inexact exception, it causes that the IEX, IEX cumulative exception, flag in $fpcsr to be raised in each denormalized output handling. To make the emulation transparent to the user, the emulator needs to clear the IEX flag in $fpcsr if the result is a denormalized number. However, if the IEX flag has been raised before this floating point emulation, this cleanup may be incorrect. To avoid the IEX flags in $fpcsr be raised in each denormalized output handling, the IEX trap shall be always enabled. Signed-off-by: Vincent Chen <vincentc@andestech.com> Acked-by: Greentime Hu <greentime@andestech.com> Signed-off-by: Greentime Hu <greentime@andestech.com>
17 lines
556 B
C
17 lines
556 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
// Copyright (C) 2005-2017 Andes Technology Corporation
|
|
|
|
#define __ARCH_WANT_STAT64
|
|
#define __ARCH_WANT_SYNC_FILE_RANGE2
|
|
#define __ARCH_WANT_SET_GET_RLIMIT
|
|
#define __ARCH_WANT_TIME32_SYSCALLS
|
|
|
|
/* Use the standard ABI for syscalls */
|
|
#include <asm-generic/unistd.h>
|
|
|
|
/* Additional NDS32 specific syscalls. */
|
|
#define __NR_cacheflush (__NR_arch_specific_syscall)
|
|
#define __NR_fp_udfiex_crtl (__NR_arch_specific_syscall + 1)
|
|
__SYSCALL(__NR_cacheflush, sys_cacheflush)
|
|
__SYSCALL(__NR_fp_udfiex_crtl, sys_fp_udfiex_crtl)
|