Home
last modified time | relevance | path

Searched refs:fpa11 (Results 1 – 10 of 10) sorted by relevance

/linux-3.4.99/arch/arm/nwfpe/
Dfpa11_cprt.c71 FPA11 *fpa11 = GET_FPA11(); in PerformFLT() local
81 fpa11->fType[getFn(opcode)] = typeSingle; in PerformFLT()
82 fpa11->fpreg[getFn(opcode)].fSingle = int32_to_float32(&roundData, readRegister(getRd(opcode))); in PerformFLT()
88 fpa11->fType[getFn(opcode)] = typeDouble; in PerformFLT()
89 fpa11->fpreg[getFn(opcode)].fDouble = int32_to_float64(readRegister(getRd(opcode))); in PerformFLT()
96 fpa11->fType[getFn(opcode)] = typeExtended; in PerformFLT()
97 fpa11->fpreg[getFn(opcode)].fExtended = int32_to_floatx80(readRegister(getRd(opcode))); in PerformFLT()
114 FPA11 *fpa11 = GET_FPA11(); in PerformFIX() local
122 switch (fpa11->fType[Fn]) { in PerformFIX()
125 writeRegister(getRd(opcode), float32_to_int32(&roundData, fpa11->fpreg[Fn].fSingle)); in PerformFIX()
[all …]
Dfpa11_cpdt.c33 FPA11 *fpa11 = GET_FPA11(); in loadSingle() local
34 fpa11->fType[Fn] = typeSingle; in loadSingle()
35 get_user(fpa11->fpreg[Fn].fSingle, pMem); in loadSingle()
40 FPA11 *fpa11 = GET_FPA11(); in loadDouble() local
42 p = (unsigned int *) &fpa11->fpreg[Fn].fDouble; in loadDouble()
43 fpa11->fType[Fn] = typeDouble; in loadDouble()
56 FPA11 *fpa11 = GET_FPA11(); in loadExtended() local
58 p = (unsigned int *) &fpa11->fpreg[Fn].fExtended; in loadExtended()
59 fpa11->fType[Fn] = typeExtended; in loadExtended()
73 FPA11 *fpa11 = GET_FPA11(); in loadMultiple() local
[all …]
Dfpa11.inl22 #include "fpa11.h"
27 FPA11 *fpa11 = GET_FPA11(); local
28 return (fpa11->fpsr);
33 FPA11 *fpa11 = GET_FPA11(); local
35 fpa11->fpsr = (fpa11->fpsr & MASK_SYSID) | (reg & ~MASK_SYSID);
41 FPA11 *fpa11 = GET_FPA11(); local
43 return (fpa11->fpcr & ~MASK_RFC);
48 FPA11 *fpa11 = GET_FPA11(); local
49 fpa11->fpcr &= ~MASK_WFC; /* clear SB, AB and DA bits */
50 fpa11->fpcr |= (reg & MASK_WFC); /* write SB, AB and DA bits */
Dfpa11.c36 FPA11 *fpa11 = GET_FPA11(); in resetFPA11() local
40 fpa11->fType[i] = typeNone; in resetFPA11()
44 fpa11->fpsr = FP_EMULATOR | BIT_AC; in resetFPA11()
87 FPA11 *fpa11 = (FPA11 *)fp; in nwfpe_init_fpa() local
91 memset(fpa11, 0, sizeof(FPA11)); in nwfpe_init_fpa()
93 fpa11->initflag = 1; in nwfpe_init_fpa()
Dextended_cpdo.c92 FPA11 *fpa11 = GET_FPA11(); in ExtendedCPDO() local
100 switch (fpa11->fType[Fm]) { in ExtendedCPDO()
102 rFm = float32_to_floatx80(fpa11->fpreg[Fm].fSingle); in ExtendedCPDO()
106 rFm = float64_to_floatx80(fpa11->fpreg[Fm].fDouble); in ExtendedCPDO()
110 rFm = fpa11->fpreg[Fm].fExtended; in ExtendedCPDO()
123 switch (fpa11->fType[Fn]) { in ExtendedCPDO()
125 rFn = float32_to_floatx80(fpa11->fpreg[Fn].fSingle); in ExtendedCPDO()
129 rFn = float64_to_floatx80(fpa11->fpreg[Fn].fDouble); in ExtendedCPDO()
133 rFn = fpa11->fpreg[Fn].fExtended; in ExtendedCPDO()
Dfpa11_cpdo.c32 FPA11 *fpa11 = GET_FPA11(); in EmulateCPDO() local
55 nType = fpa11->fType[getFn(opcode)]; in EmulateCPDO()
59 if (nType < fpa11->fType[Fm]) { in EmulateCPDO()
60 nType = fpa11->fType[Fm]; in EmulateCPDO()
64 rFd = &fpa11->fpreg[getFd(opcode)]; in EmulateCPDO()
90 fpa11->fType[getFd(opcode)] = nDest; in EmulateCPDO()
Ddouble_cpdo.c113 FPA11 *fpa11 = GET_FPA11(); in DoubleCPDO() local
121 switch (fpa11->fType[Fm]) { in DoubleCPDO()
123 rFm = float32_to_float64(fpa11->fpreg[Fm].fSingle); in DoubleCPDO()
127 rFm = fpa11->fpreg[Fm].fDouble; in DoubleCPDO()
140 switch (fpa11->fType[Fn]) { in DoubleCPDO()
142 rFn = float32_to_float64(fpa11->fpreg[Fn].fSingle); in DoubleCPDO()
146 rFn = fpa11->fpreg[Fn].fDouble; in DoubleCPDO()
Dsingle_cpdo.c90 FPA11 *fpa11 = GET_FPA11(); in SingleCPDO() local
97 } else if (fpa11->fType[Fm] == typeSingle) { in SingleCPDO()
98 rFm = fpa11->fpreg[Fm].fSingle; in SingleCPDO()
108 if (fpa11->fType[Fn] == typeSingle && in SingleCPDO()
110 rFn = fpa11->fpreg[Fn].fSingle; in SingleCPDO()
DChangeLog11 * fpa11.h - Add documentation
35 * fpa11.h - modified FPA11, FPREG structures
36 * fpa11.c - Changes due to FPA11, FPREG structure alterations.
89 * fpa11.c - added code to initialize register types to typeNone
DMakefile7 nwfpe-y += fpa11.o fpa11_cpdo.o fpa11_cpdt.o \