Ignore:
Timestamp:
2018-09-14T23:15:04Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6f58770
Parents:
09ab0a9a
Message:

Set FPSR.sf1 controls to standard values

The Itanium Software Conventions and Runtime Architecture Guide reserves
the Status Field 1 of FPSR to be used by the divide and square root code
and requires that it has certain standard values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia64/include/arch/register.h

    r09ab0a9a rcc74cb5  
    7878#define FPSR_TRAPS_ALL (FPSR_TRAPS_VD | FPSR_TRAPS_DD | FPSR_TRAPS_ZD | \
    7979    FPSR_TRAPS_OD | FPSR_TRAPS_UD | FPSR_TRAPS_ID)
     80
     81#define FPSR_SF1_SHIFT 19
     82
     83#define FPSR_CTRL_WRE           (1 << 1)
     84#define FPSR_CTRL_PC_EXTENDED   (3 << 2)
     85#define FPSR_CTRL_RC_NEAREST    (0 << 4)
     86#define FPSR_CTRL_TD            (1 << 6)
     87
     88#define FPSR_SF1_CTRL ((FPSR_CTRL_WRE | FPSR_CTRL_PC_EXTENDED | \
     89    FPSR_CTRL_RC_NEAREST | FPSR_CTRL_TD) << FPSR_SF1_SHIFT)
    8090
    8191/** Application registers. */
Note: See TracChangeset for help on using the changeset viewer.