forked from Minki/linux
d2912cb15b
Based on 2 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation # extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 4122 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Enrico Weigelt <info@metux.net> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
51 lines
1.2 KiB
C
51 lines
1.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* linux/arch/unicore32/include/asm/fpu-ucf64.h
|
|
*
|
|
* Code specific to PKUnity SoC and UniCore ISA
|
|
*
|
|
* Maintained by GUAN Xue-tao <gxt@mprc.pku.edu.cn>
|
|
* Copyright (C) 2001-2010 Guan Xuetao
|
|
*/
|
|
#define FPSCR s31
|
|
|
|
/* FPSCR bits */
|
|
#define FPSCR_DEFAULT_NAN (1<<25)
|
|
|
|
#define FPSCR_CMPINSTR_BIT (1<<31)
|
|
|
|
#define FPSCR_CON (1<<29)
|
|
#define FPSCR_TRAP (1<<27)
|
|
|
|
/* RND mode */
|
|
#define FPSCR_ROUND_NEAREST (0<<0)
|
|
#define FPSCR_ROUND_PLUSINF (2<<0)
|
|
#define FPSCR_ROUND_MINUSINF (3<<0)
|
|
#define FPSCR_ROUND_TOZERO (1<<0)
|
|
#define FPSCR_RMODE_BIT (0)
|
|
#define FPSCR_RMODE_MASK (7 << FPSCR_RMODE_BIT)
|
|
|
|
/* trap enable */
|
|
#define FPSCR_IOE (1<<16)
|
|
#define FPSCR_OFE (1<<14)
|
|
#define FPSCR_UFE (1<<13)
|
|
#define FPSCR_IXE (1<<12)
|
|
#define FPSCR_HIE (1<<11)
|
|
#define FPSCR_NDE (1<<10) /* non denomal */
|
|
|
|
/* flags */
|
|
#define FPSCR_IDC (1<<24)
|
|
#define FPSCR_HIC (1<<23)
|
|
#define FPSCR_IXC (1<<22)
|
|
#define FPSCR_OFC (1<<21)
|
|
#define FPSCR_UFC (1<<20)
|
|
#define FPSCR_IOC (1<<19)
|
|
|
|
/* stick bits */
|
|
#define FPSCR_IOS (1<<9)
|
|
#define FPSCR_OFS (1<<7)
|
|
#define FPSCR_UFS (1<<6)
|
|
#define FPSCR_IXS (1<<5)
|
|
#define FPSCR_HIS (1<<4)
|
|
#define FPSCR_NDS (1<<3) /*non denomal */
|