/openbmc/qemu/linux-user/arm/nwfpe/ |
H A D | extended_cpdo.c | 40 FPA11 *fpa11 = GET_FPA11(); in ExtendedCPDO() local 53 switch (fpa11->fType[Fm]) in ExtendedCPDO() 56 rFm = float32_to_floatx80(fpa11->fpreg[Fm].fSingle, &fpa11->fp_status); in ExtendedCPDO() 60 rFm = float64_to_floatx80(fpa11->fpreg[Fm].fDouble, &fpa11->fp_status); in ExtendedCPDO() 64 rFm = fpa11->fpreg[Fm].fExtended; in ExtendedCPDO() 74 switch (fpa11->fType[Fn]) in ExtendedCPDO() 77 rFn = float32_to_floatx80(fpa11->fpreg[Fn].fSingle, &fpa11->fp_status); in ExtendedCPDO() 81 rFn = float64_to_floatx80(fpa11->fpreg[Fn].fDouble, &fpa11->fp_status); in ExtendedCPDO() 85 rFn = fpa11->fpreg[Fn].fExtended; in ExtendedCPDO() 97 fpa11->fpreg[Fd].fExtended = floatx80_add(rFn,rFm, &fpa11->fp_status); in ExtendedCPDO() [all …]
|
H A D | fpa11_cprt.c | 74 FPA11 *fpa11 = GET_FPA11(); in PerformFLT() local 83 fpa11->fType[getFn(opcode)] = typeSingle; in PerformFLT() 84 fpa11->fpreg[getFn(opcode)].fSingle = in PerformFLT() 85 int32_to_float32(readRegister(getRd(opcode)), &fpa11->fp_status); in PerformFLT() 91 fpa11->fType[getFn(opcode)] = typeDouble; in PerformFLT() 92 fpa11->fpreg[getFn(opcode)].fDouble = in PerformFLT() 93 int32_to_float64(readRegister(getRd(opcode)), &fpa11->fp_status); in PerformFLT() 99 fpa11->fType[getFn(opcode)] = typeExtended; in PerformFLT() 100 fpa11->fpreg[getFn(opcode)].fExtended = in PerformFLT() 101 int32_to_floatx80(readRegister(getRd(opcode)), &fpa11->fp_status); in PerformFLT() [all …]
|
H A D | double_cpdo.c | 40 FPA11 *fpa11 = GET_FPA11(); in DoubleCPDO() local 53 switch (fpa11->fType[Fm]) in DoubleCPDO() 56 rFm = float32_to_float64(fpa11->fpreg[Fm].fSingle, &fpa11->fp_status); in DoubleCPDO() 60 rFm = fpa11->fpreg[Fm].fDouble; in DoubleCPDO() 79 switch (fpa11->fType[Fn]) in DoubleCPDO() 82 rFn = float32_to_float64(fpa11->fpreg[Fn].fSingle, &fpa11->fp_status); in DoubleCPDO() 86 rFn = fpa11->fpreg[Fn].fDouble; in DoubleCPDO() 99 fpa11->fpreg[Fd].fDouble = float64_add(rFn,rFm, &fpa11->fp_status); in DoubleCPDO() 104 fpa11->fpreg[Fd].fDouble = float64_mul(rFn,rFm, &fpa11->fp_status); in DoubleCPDO() 108 fpa11->fpreg[Fd].fDouble = float64_sub(rFn,rFm, &fpa11->fp_status); in DoubleCPDO() [all …]
|
H A D | single_cpdo.c | 40 FPA11 *fpa11 = GET_FPA11(); in SingleCPDO() local 51 switch (fpa11->fType[Fm]) in SingleCPDO() 54 rFm = fpa11->fpreg[Fm].fSingle; in SingleCPDO() 64 switch (fpa11->fType[Fn]) in SingleCPDO() 67 rFn = fpa11->fpreg[Fn].fSingle; in SingleCPDO() 79 fpa11->fpreg[Fd].fSingle = float32_add(rFn,rFm, &fpa11->fp_status); in SingleCPDO() 84 fpa11->fpreg[Fd].fSingle = float32_mul(rFn,rFm, &fpa11->fp_status); in SingleCPDO() 88 fpa11->fpreg[Fd].fSingle = float32_sub(rFn,rFm, &fpa11->fp_status); in SingleCPDO() 92 fpa11->fpreg[Fd].fSingle = float32_sub(rFm,rFn, &fpa11->fp_status); in SingleCPDO() 97 fpa11->fpreg[Fd].fSingle = float32_div(rFn,rFm, &fpa11->fp_status); in SingleCPDO() [all …]
|
H A D | fpa11_cpdo.c | 27 FPA11 *fpa11 = GET_FPA11(); in EmulateCPDO() local 47 nType = fpa11->fType[getFn(opcode)]; in EmulateCPDO() 52 if (nType < fpa11->fType[Fm]) in EmulateCPDO() 54 nType = fpa11->fType[Fm]; in EmulateCPDO() 70 nType = fpa11->fType[Fd]; in EmulateCPDO() 78 fpa11->fpreg[Fd].fSingle = in EmulateCPDO() 79 float64_to_float32(fpa11->fpreg[Fd].fDouble, &fpa11->fp_status); in EmulateCPDO() 81 fpa11->fpreg[Fd].fSingle = in EmulateCPDO() 82 floatx80_to_float32(fpa11->fpreg[Fd].fExtended, &fpa11->fp_status); in EmulateCPDO() 89 fpa11->fpreg[Fd].fDouble = in EmulateCPDO() [all …]
|
H A D | fpa11.c | 39 FPA11 *fpa11 = GET_FPA11(); in resetFPA11() local 44 fpa11->fType[i] = typeNone; in resetFPA11() 48 fpa11->fpsr = FP_EMULATOR | BIT_AC; in resetFPA11() 52 fpa11->fpcr = MASK_RESET; in resetFPA11() 71 set_float_2nan_prop_rule(float_2nan_prop_s_ab, &fpa11->fp_status); in resetFPA11() 77 FPA11 *fpa11 = GET_FPA11(); in SetRoundingMode() local 80 fpa11->fpcr &= ~MASK_ROUNDING_MODE; in SetRoundingMode() 88 fpa11->fpcr |= ROUND_TO_NEAREST; in SetRoundingMode() 95 fpa11->fpcr |= ROUND_TO_PLUS_INFINITY; in SetRoundingMode() 102 fpa11->fpcr |= ROUND_TO_MINUS_INFINITY; in SetRoundingMode() [all …]
|
H A D | fpa11_cpdt.c | 34 FPA11 *fpa11 = GET_FPA11(); in loadSingle() local 35 fpa11->fType[Fn] = typeSingle; in loadSingle() 37 get_user_u32(float32_val(fpa11->fpreg[Fn].fSingle), addr); in loadSingle() 43 FPA11 *fpa11 = GET_FPA11(); in loadDouble() local 45 p = (unsigned int*)&fpa11->fpreg[Fn].fDouble; in loadDouble() 46 fpa11->fType[Fn] = typeDouble; in loadDouble() 61 FPA11 *fpa11 = GET_FPA11(); in loadExtended() local 63 p = (unsigned int*)&fpa11->fpreg[Fn].fExtended; in loadExtended() 64 fpa11->fType[Fn] = typeExtended; in loadExtended() 74 FPA11 *fpa11 = GET_FPA11(); in loadMultiple() local [all …]
|
H A D | fpa11.inl | 21 #include "fpa11.h" 26 FPA11 *fpa11 = GET_FPA11(); local 27 return(fpa11->fpsr); 32 FPA11 *fpa11 = GET_FPA11(); local 34 fpa11->fpsr = (fpa11->fpsr & MASK_SYSID) | (reg & ~MASK_SYSID); 40 FPA11 *fpa11 = GET_FPA11(); local 42 return(fpa11->fpcr & ~MASK_RFC); 47 FPA11 *fpa11 = GET_FPA11(); local 48 fpa11->fpcr &= ~MASK_WFC; /* clear SB, AB and DA bits */ 49 fpa11->fpcr |= (reg & MASK_WFC); /* write SB, AB and DA bits */
|
H A D | meson.build | 4 'fpa11.c',
|
/openbmc/linux/arch/arm/nwfpe/ |
H A D | fpa11_cprt.c | 59 FPA11 *fpa11 = GET_FPA11(); in PerformFLT() local 69 fpa11->fType[getFn(opcode)] = typeSingle; in PerformFLT() 70 fpa11->fpreg[getFn(opcode)].fSingle = int32_to_float32(&roundData, readRegister(getRd(opcode))); in PerformFLT() 76 fpa11->fType[getFn(opcode)] = typeDouble; in PerformFLT() 77 fpa11->fpreg[getFn(opcode)].fDouble = int32_to_float64(readRegister(getRd(opcode))); in PerformFLT() 84 fpa11->fType[getFn(opcode)] = typeExtended; in PerformFLT() 85 fpa11->fpreg[getFn(opcode)].fExtended = int32_to_floatx80(readRegister(getRd(opcode))); in PerformFLT() 102 FPA11 *fpa11 = GET_FPA11(); in PerformFIX() local 110 switch (fpa11->fType[Fn]) { in PerformFIX() 113 writeRegister(getRd(opcode), float32_to_int32(&roundData, fpa11->fpreg[Fn].fSingle)); in PerformFIX() [all …]
|
H A D | fpa11_cpdt.c | 21 FPA11 *fpa11 = GET_FPA11(); in loadSingle() local 22 fpa11->fType[Fn] = typeSingle; in loadSingle() 23 get_user(fpa11->fpreg[Fn].fSingle, pMem); in loadSingle() 28 FPA11 *fpa11 = GET_FPA11(); in loadDouble() local 30 p = (unsigned int *) &fpa11->fpreg[Fn].fDouble; in loadDouble() 31 fpa11->fType[Fn] = typeDouble; in loadDouble() 44 FPA11 *fpa11 = GET_FPA11(); in loadExtended() local 46 p = (unsigned int *) &fpa11->fpreg[Fn].fExtended; in loadExtended() 47 fpa11->fType[Fn] = typeExtended; in loadExtended() 61 FPA11 *fpa11 = GET_FPA11(); in loadMultiple() local [all …]
|
H A D | fpa11.inl | 22 #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 */
|
H A D | fpa11.c | 24 FPA11 *fpa11 = GET_FPA11(); in resetFPA11() local 28 fpa11->fType[i] = typeNone; in resetFPA11() 32 fpa11->fpsr = FP_EMULATOR | BIT_AC; in resetFPA11() 75 FPA11 *fpa11 = (FPA11 *)fp; in nwfpe_init_fpa() local 79 memset(fpa11, 0, sizeof(FPA11)); in nwfpe_init_fpa() 81 fpa11->initflag = 1; in nwfpe_init_fpa()
|
H A D | extended_cpdo.c | 80 FPA11 *fpa11 = GET_FPA11(); in ExtendedCPDO() local 88 switch (fpa11->fType[Fm]) { in ExtendedCPDO() 90 rFm = float32_to_floatx80(fpa11->fpreg[Fm].fSingle); in ExtendedCPDO() 94 rFm = float64_to_floatx80(fpa11->fpreg[Fm].fDouble); in ExtendedCPDO() 98 rFm = fpa11->fpreg[Fm].fExtended; in ExtendedCPDO() 111 switch (fpa11->fType[Fn]) { in ExtendedCPDO() 113 rFn = float32_to_floatx80(fpa11->fpreg[Fn].fSingle); in ExtendedCPDO() 117 rFn = float64_to_floatx80(fpa11->fpreg[Fn].fDouble); in ExtendedCPDO() 121 rFn = fpa11->fpreg[Fn].fExtended; in ExtendedCPDO()
|
H A D | fpa11_cpdo.c | 20 FPA11 *fpa11 = GET_FPA11(); in EmulateCPDO() local 43 nType = fpa11->fType[getFn(opcode)]; in EmulateCPDO() 47 if (nType < fpa11->fType[Fm]) { in EmulateCPDO() 48 nType = fpa11->fType[Fm]; in EmulateCPDO() 52 rFd = &fpa11->fpreg[getFd(opcode)]; in EmulateCPDO() 78 fpa11->fType[getFd(opcode)] = nDest; in EmulateCPDO()
|
H A D | double_cpdo.c | 101 FPA11 *fpa11 = GET_FPA11(); in DoubleCPDO() local 109 switch (fpa11->fType[Fm]) { in DoubleCPDO() 111 rFm = float32_to_float64(fpa11->fpreg[Fm].fSingle); in DoubleCPDO() 115 rFm = fpa11->fpreg[Fm].fDouble; in DoubleCPDO() 128 switch (fpa11->fType[Fn]) { in DoubleCPDO() 130 rFn = float32_to_float64(fpa11->fpreg[Fn].fSingle); in DoubleCPDO() 134 rFn = fpa11->fpreg[Fn].fDouble; in DoubleCPDO()
|
H A D | single_cpdo.c | 78 FPA11 *fpa11 = GET_FPA11(); in SingleCPDO() local 85 } else if (fpa11->fType[Fm] == typeSingle) { in SingleCPDO() 86 rFm = fpa11->fpreg[Fm].fSingle; in SingleCPDO() 96 if (fpa11->fType[Fn] == typeSingle && in SingleCPDO() 98 rFn = fpa11->fpreg[Fn].fSingle; in SingleCPDO()
|
H A D | ChangeLog | 11 * 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
|
H A D | Makefile | 8 nwfpe-y += fpa11.o fpa11_cpdo.o fpa11_cpdt.o \
|
/openbmc/linux/ |
H A D | opengrok1.0.log | [all...] |
/openbmc/ |
D | opengrok1.0.log | [all...] |
D | opengrok2.0.log | [all...] |