fpu-ucf64.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * linux/arch/unicore32/include/asm/fpu-ucf64.h
  3. *
  4. * Code specific to PKUnity SoC and UniCore ISA
  5. *
  6. * Maintained by GUAN Xue-tao <gxt@mprc.pku.edu.cn>
  7. * Copyright (C) 2001-2010 Guan Xuetao
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. */
  13. #define FPSCR s31
  14. /* FPSCR bits */
  15. #define FPSCR_DEFAULT_NAN (1<<25)
  16. #define FPSCR_CMPINSTR_BIT (1<<31)
  17. #define FPSCR_CON (1<<29)
  18. #define FPSCR_TRAP (1<<27)
  19. /* RND mode */
  20. #define FPSCR_ROUND_NEAREST (0<<0)
  21. #define FPSCR_ROUND_PLUSINF (2<<0)
  22. #define FPSCR_ROUND_MINUSINF (3<<0)
  23. #define FPSCR_ROUND_TOZERO (1<<0)
  24. #define FPSCR_RMODE_BIT (0)
  25. #define FPSCR_RMODE_MASK (7 << FPSCR_RMODE_BIT)
  26. /* trap enable */
  27. #define FPSCR_IOE (1<<16)
  28. #define FPSCR_OFE (1<<14)
  29. #define FPSCR_UFE (1<<13)
  30. #define FPSCR_IXE (1<<12)
  31. #define FPSCR_HIE (1<<11)
  32. #define FPSCR_NDE (1<<10) /* non denomal */
  33. /* flags */
  34. #define FPSCR_IDC (1<<24)
  35. #define FPSCR_HIC (1<<23)
  36. #define FPSCR_IXC (1<<22)
  37. #define FPSCR_OFC (1<<21)
  38. #define FPSCR_UFC (1<<20)
  39. #define FPSCR_IOC (1<<19)
  40. /* stick bits */
  41. #define FPSCR_IOS (1<<9)
  42. #define FPSCR_OFS (1<<7)
  43. #define FPSCR_UFS (1<<6)
  44. #define FPSCR_IXS (1<<5)
  45. #define FPSCR_HIS (1<<4)
  46. #define FPSCR_NDS (1<<3) /*non denomal */