fpu.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Linux/PA-RISC Project (http://www.parisc-linux.org/)
  4. *
  5. * Floating-point emulation code
  6. * Copyright (C) 2001 Hewlett-Packard (Paul Bame) <[email protected]>
  7. */
  8. #ifndef _MACHINE_FPU_INCLUDED /* allows multiple inclusion */
  9. #define _MACHINE_FPU_INCLUDED
  10. #define PA83_FPU_FLAG 0x00000001
  11. #define PA89_FPU_FLAG 0x00000002
  12. #define PA2_0_FPU_FLAG 0x00000010
  13. #define TIMEX_EXTEN_FLAG 0x00000004
  14. #define ROLEX_EXTEN_FLAG 0x00000008
  15. #define COPR_FP 0x00000080 /* Floating point -- Coprocessor 0 */
  16. #define SFU_MPY_DIVIDE 0x00008000 /* Multiply/Divide __ SFU 0 */
  17. #define EM_FPU_TYPE_OFFSET 272
  18. /* version of EMULATION software for COPR,0,0 instruction */
  19. #define EMULATION_VERSION 4
  20. /*
  21. * The only way to differentiate between TIMEX and ROLEX (or PCX-S and PCX-T)
  22. * is through the potential type field from the PDC_MODEL call.
  23. * The following flags are used to assist this differentiation.
  24. */
  25. #define ROLEX_POTENTIAL_KEY_FLAGS PDC_MODEL_CPU_KEY_WORD_TO_IO
  26. #define TIMEX_POTENTIAL_KEY_FLAGS (PDC_MODEL_CPU_KEY_QUAD_STORE | \
  27. PDC_MODEL_CPU_KEY_RECIP_SQRT)
  28. #endif /* ! _MACHINE_FPU_INCLUDED */