Lines Matching refs:regNum
99 inline bool Registers_x86::validRegister(int regNum) const { in validRegister()
100 if (regNum == UNW_REG_IP) in validRegister()
102 if (regNum == UNW_REG_SP) in validRegister()
104 if (regNum < 0) in validRegister()
106 if (regNum > 7) in validRegister()
111 inline uint32_t Registers_x86::getRegister(int regNum) const { in getRegister()
112 switch (regNum) { in getRegister()
137 inline void Registers_x86::setRegister(int regNum, uint32_t value) { in setRegister() argument
138 switch (regNum) { in setRegister()
173 inline const char *Registers_x86::getRegisterName(int regNum) { in getRegisterName() argument
174 switch (regNum) { in getRegisterName()
291 inline bool Registers_x86_64::validRegister(int regNum) const { in validRegister()
292 if (regNum == UNW_REG_IP) in validRegister()
294 if (regNum == UNW_REG_SP) in validRegister()
296 if (regNum < 0) in validRegister()
298 if (regNum > 15) in validRegister()
303 inline uint64_t Registers_x86_64::getRegister(int regNum) const { in getRegister()
304 switch (regNum) { in getRegister()
345 inline void Registers_x86_64::setRegister(int regNum, uint64_t value) { in setRegister() argument
346 switch (regNum) { in setRegister()
405 inline const char *Registers_x86_64::getRegisterName(int regNum) { in getRegisterName() argument
406 switch (regNum) { in getRegisterName()
570 inline bool Registers_ppc::validRegister(int regNum) const { in validRegister()
571 if (regNum == UNW_REG_IP) in validRegister()
573 if (regNum == UNW_REG_SP) in validRegister()
575 if (regNum == UNW_PPC_VRSAVE) in validRegister()
577 if (regNum < 0) in validRegister()
579 if (regNum <= UNW_PPC_R31) in validRegister()
581 if (regNum == UNW_PPC_MQ) in validRegister()
583 if (regNum == UNW_PPC_LR) in validRegister()
585 if (regNum == UNW_PPC_CTR) in validRegister()
587 if ((UNW_PPC_CR0 <= regNum) && (regNum <= UNW_PPC_CR7)) in validRegister()
592 inline uint32_t Registers_ppc::getRegister(int regNum) const { in getRegister()
593 switch (regNum) { in getRegister()
686 inline void Registers_ppc::setRegister(int regNum, uint32_t value) { in setRegister() argument
688 switch (regNum) { in setRegister()
849 inline bool Registers_ppc::validFloatRegister(int regNum) const { in validFloatRegister()
850 if (regNum < UNW_PPC_F0) in validFloatRegister()
852 if (regNum > UNW_PPC_F31) in validFloatRegister()
857 inline double Registers_ppc::getFloatRegister(int regNum) const { in getFloatRegister()
858 assert(validFloatRegister(regNum)); in getFloatRegister()
859 return _floatRegisters.__fpregs[regNum - UNW_PPC_F0]; in getFloatRegister()
862 inline void Registers_ppc::setFloatRegister(int regNum, double value) { in setFloatRegister() argument
863 assert(validFloatRegister(regNum)); in setFloatRegister()
864 _floatRegisters.__fpregs[regNum - UNW_PPC_F0] = value; in setFloatRegister()
867 inline bool Registers_ppc::validVectorRegister(int regNum) const { in validVectorRegister()
868 if (regNum < UNW_PPC_V0) in validVectorRegister()
870 if (regNum > UNW_PPC_V31) in validVectorRegister()
875 inline v128 Registers_ppc::getVectorRegister(int regNum) const { in getVectorRegister()
876 assert(validVectorRegister(regNum)); in getVectorRegister()
877 v128 result = _vectorRegisters[regNum - UNW_PPC_V0]; in getVectorRegister()
881 inline void Registers_ppc::setVectorRegister(int regNum, v128 value) { in setVectorRegister() argument
882 assert(validVectorRegister(regNum)); in setVectorRegister()
883 _vectorRegisters[regNum - UNW_PPC_V0] = value; in setVectorRegister()
886 inline const char *Registers_ppc::getRegisterName(int regNum) { in getRegisterName() argument
887 switch (regNum) { in getRegisterName()
1090 inline bool Registers_arm64::validRegister(int regNum) const { in validRegister()
1091 if (regNum == UNW_REG_IP) in validRegister()
1093 if (regNum == UNW_REG_SP) in validRegister()
1095 if (regNum < 0) in validRegister()
1097 if (regNum > 95) in validRegister()
1099 if ((regNum > 31) && (regNum < 64)) in validRegister()
1104 inline uint64_t Registers_arm64::getRegister(int regNum) const { in getRegister()
1105 if (regNum == UNW_REG_IP) in getRegister()
1107 if (regNum == UNW_REG_SP) in getRegister()
1109 if ((regNum >= 0) && (regNum < 32)) in getRegister()
1110 return _registers.__x[regNum]; in getRegister()
1114 inline void Registers_arm64::setRegister(int regNum, uint64_t value) { in setRegister() argument
1115 if (regNum == UNW_REG_IP) in setRegister()
1117 else if (regNum == UNW_REG_SP) in setRegister()
1119 else if ((regNum >= 0) && (regNum < 32)) in setRegister()
1120 _registers.__x[regNum] = value; in setRegister()
1125 inline const char *Registers_arm64::getRegisterName(int regNum) { in getRegisterName() argument
1126 switch (regNum) { in getRegisterName()
1264 inline bool Registers_arm64::validFloatRegister(int regNum) const { in validFloatRegister()
1265 if (regNum < UNW_ARM64_D0) in validFloatRegister()
1267 if (regNum > UNW_ARM64_D31) in validFloatRegister()
1272 inline double Registers_arm64::getFloatRegister(int regNum) const { in getFloatRegister()
1273 assert(validFloatRegister(regNum)); in getFloatRegister()
1274 return _vectorHalfRegisters[regNum - UNW_ARM64_D0]; in getFloatRegister()
1277 inline void Registers_arm64::setFloatRegister(int regNum, double value) { in setFloatRegister() argument
1278 assert(validFloatRegister(regNum)); in setFloatRegister()
1279 _vectorHalfRegisters[regNum - UNW_ARM64_D0] = value; in setFloatRegister()
1422 inline bool Registers_arm::validRegister(int regNum) const { in validRegister()
1425 if (regNum == UNW_REG_IP) in validRegister()
1427 if (regNum == UNW_REG_SP) in validRegister()
1429 if (regNum >= UNW_ARM_R0 && regNum <= UNW_ARM_R15) in validRegister()
1431 if (regNum >= UNW_ARM_WC0 && regNum <= UNW_ARM_WC3) in validRegister()
1436 inline uint32_t Registers_arm::getRegister(int regNum) { in getRegister() argument
1437 if (regNum == UNW_REG_SP || regNum == UNW_ARM_SP) in getRegister()
1439 if (regNum == UNW_ARM_LR) in getRegister()
1441 if (regNum == UNW_REG_IP || regNum == UNW_ARM_IP) in getRegister()
1443 if (regNum >= UNW_ARM_R0 && regNum <= UNW_ARM_R12) in getRegister()
1444 return _registers.__r[regNum]; in getRegister()
1445 if (regNum >= UNW_ARM_WC0 && regNum <= UNW_ARM_WC3) { in getRegister()
1450 return _iwmmx_control[regNum - UNW_ARM_WC0]; in getRegister()
1455 inline void Registers_arm::setRegister(int regNum, uint32_t value) { in setRegister() argument
1456 if (regNum == UNW_REG_SP || regNum == UNW_ARM_SP) in setRegister()
1458 else if (regNum == UNW_ARM_LR) in setRegister()
1460 else if (regNum == UNW_REG_IP || regNum == UNW_ARM_IP) in setRegister()
1462 else if (regNum >= UNW_ARM_R0 && regNum <= UNW_ARM_R12) in setRegister()
1463 _registers.__r[regNum] = value; in setRegister()
1464 else if (regNum >= UNW_ARM_WC0 && regNum <= UNW_ARM_WC3) { in setRegister()
1469 _iwmmx_control[regNum - UNW_ARM_WC0] = value; in setRegister()
1474 inline const char *Registers_arm::getRegisterName(int regNum) { in getRegisterName() argument
1475 switch (regNum) { in getRegisterName()
1643 inline bool Registers_arm::validFloatRegister(int regNum) const { in validFloatRegister()
1646 return ((regNum >= UNW_ARM_D0) && (regNum <= UNW_ARM_D31)) in validFloatRegister()
1647 || ((regNum >= UNW_ARM_WR0) && (regNum <= UNW_ARM_WR15)); in validFloatRegister()
1650 inline unw_fpreg_t Registers_arm::getFloatRegister(int regNum) { in getFloatRegister() argument
1651 if (regNum >= UNW_ARM_D0 && regNum <= UNW_ARM_D15) { in getFloatRegister()
1659 return _vfp_d0_d15_pad[regNum - UNW_ARM_D0]; in getFloatRegister()
1660 } else if (regNum >= UNW_ARM_D16 && regNum <= UNW_ARM_D31) { in getFloatRegister()
1665 return _vfp_d16_d31[regNum - UNW_ARM_D16]; in getFloatRegister()
1666 } else if (regNum >= UNW_ARM_WR0 && regNum <= UNW_ARM_WR15) { in getFloatRegister()
1671 return _iwmmx[regNum - UNW_ARM_WR0]; in getFloatRegister()
1677 inline void Registers_arm::setFloatRegister(int regNum, unw_fpreg_t value) { in setFloatRegister() argument
1678 if (regNum >= UNW_ARM_D0 && regNum <= UNW_ARM_D15) { in setFloatRegister()
1686 _vfp_d0_d15_pad[regNum - UNW_ARM_D0] = value; in setFloatRegister()
1687 } else if (regNum >= UNW_ARM_D16 && regNum <= UNW_ARM_D31) { in setFloatRegister()
1692 _vfp_d16_d31[regNum - UNW_ARM_D0] = value; in setFloatRegister()
1693 } else if (regNum >= UNW_ARM_WR0 && regNum <= UNW_ARM_WR15) { in setFloatRegister()
1698 _iwmmx[regNum - UNW_ARM_WR0] = value; in setFloatRegister()