• Home
  • Raw
  • Download

Lines Matching refs:regNum

111 inline bool Registers_x86::validRegister(int regNum) const {  in validRegister()
112 if (regNum == UNW_REG_IP) in validRegister()
114 if (regNum == UNW_REG_SP) in validRegister()
116 if (regNum < 0) in validRegister()
118 if (regNum > 7) in validRegister()
123 inline uint32_t Registers_x86::getRegister(int regNum) const { in getRegister()
124 switch (regNum) { in getRegister()
157 inline void Registers_x86::setRegister(int regNum, uint32_t value) { in setRegister() argument
158 switch (regNum) { in setRegister()
201 inline const char *Registers_x86::getRegisterName(int regNum) { in getRegisterName() argument
202 switch (regNum) { in getRegisterName()
328 inline bool Registers_x86_64::validRegister(int regNum) const { in validRegister()
329 if (regNum == UNW_REG_IP) in validRegister()
331 if (regNum == UNW_REG_SP) in validRegister()
333 if (regNum < 0) in validRegister()
335 if (regNum > 15) in validRegister()
340 inline uint64_t Registers_x86_64::getRegister(int regNum) const { in getRegister()
341 switch (regNum) { in getRegister()
382 inline void Registers_x86_64::setRegister(int regNum, uint64_t value) { in setRegister() argument
383 switch (regNum) { in setRegister()
442 inline const char *Registers_x86_64::getRegisterName(int regNum) { in getRegisterName() argument
443 switch (regNum) { in getRegisterName()
525 inline bool Registers_x86_64::validVectorRegister(int regNum) const { in validVectorRegister()
527 if (regNum < UNW_X86_64_XMM0) in validVectorRegister()
529 if (regNum > UNW_X86_64_XMM15) in validVectorRegister()
533 (void)regNum; // suppress unused parameter warning in validVectorRegister()
538 inline v128 Registers_x86_64::getVectorRegister(int regNum) const { in getVectorRegister()
540 assert(validVectorRegister(regNum)); in getVectorRegister()
541 return _xmm[regNum - UNW_X86_64_XMM0]; in getVectorRegister()
543 (void)regNum; // suppress unused parameter warning in getVectorRegister()
548 inline void Registers_x86_64::setVectorRegister(int regNum, v128 value) { in setVectorRegister() argument
550 assert(validVectorRegister(regNum)); in setVectorRegister()
551 _xmm[regNum - UNW_X86_64_XMM0] = value; in setVectorRegister()
553 (void)regNum; (void)value; // suppress unused parameter warnings in setVectorRegister()
667 inline bool Registers_ppc::validRegister(int regNum) const { in validRegister()
668 if (regNum == UNW_REG_IP) in validRegister()
670 if (regNum == UNW_REG_SP) in validRegister()
672 if (regNum == UNW_PPC_VRSAVE) in validRegister()
674 if (regNum < 0) in validRegister()
676 if (regNum <= UNW_PPC_R31) in validRegister()
678 if (regNum == UNW_PPC_MQ) in validRegister()
680 if (regNum == UNW_PPC_LR) in validRegister()
682 if (regNum == UNW_PPC_CTR) in validRegister()
684 if ((UNW_PPC_CR0 <= regNum) && (regNum <= UNW_PPC_CR7)) in validRegister()
689 inline uint32_t Registers_ppc::getRegister(int regNum) const { in getRegister()
690 switch (regNum) { in getRegister()
783 inline void Registers_ppc::setRegister(int regNum, uint32_t value) { in setRegister() argument
785 switch (regNum) { in setRegister()
946 inline bool Registers_ppc::validFloatRegister(int regNum) const { in validFloatRegister()
947 if (regNum < UNW_PPC_F0) in validFloatRegister()
949 if (regNum > UNW_PPC_F31) in validFloatRegister()
954 inline double Registers_ppc::getFloatRegister(int regNum) const { in getFloatRegister()
955 assert(validFloatRegister(regNum)); in getFloatRegister()
956 return _floatRegisters.__fpregs[regNum - UNW_PPC_F0]; in getFloatRegister()
959 inline void Registers_ppc::setFloatRegister(int regNum, double value) { in setFloatRegister() argument
960 assert(validFloatRegister(regNum)); in setFloatRegister()
961 _floatRegisters.__fpregs[regNum - UNW_PPC_F0] = value; in setFloatRegister()
964 inline bool Registers_ppc::validVectorRegister(int regNum) const { in validVectorRegister()
965 if (regNum < UNW_PPC_V0) in validVectorRegister()
967 if (regNum > UNW_PPC_V31) in validVectorRegister()
972 inline v128 Registers_ppc::getVectorRegister(int regNum) const { in getVectorRegister()
973 assert(validVectorRegister(regNum)); in getVectorRegister()
974 v128 result = _vectorRegisters[regNum - UNW_PPC_V0]; in getVectorRegister()
978 inline void Registers_ppc::setVectorRegister(int regNum, v128 value) { in setVectorRegister() argument
979 assert(validVectorRegister(regNum)); in setVectorRegister()
980 _vectorRegisters[regNum - UNW_PPC_V0] = value; in setVectorRegister()
983 inline const char *Registers_ppc::getRegisterName(int regNum) { in getRegisterName() argument
984 switch (regNum) { in getRegisterName()
1230 inline bool Registers_ppc64::validRegister(int regNum) const { in validRegister()
1231 switch (regNum) { in validRegister()
1241 if (regNum >= UNW_PPC64_R0 && regNum <= UNW_PPC64_R31) in validRegister()
1243 if (regNum >= UNW_PPC64_CR0 && regNum <= UNW_PPC64_CR7) in validRegister()
1249 inline uint64_t Registers_ppc64::getRegister(int regNum) const { in getRegister()
1250 switch (regNum) { in getRegister()
1346 inline void Registers_ppc64::setRegister(int regNum, uint64_t value) { in setRegister() argument
1347 switch (regNum) { in setRegister()
1496 inline bool Registers_ppc64::validFloatRegister(int regNum) const { in validFloatRegister()
1497 return regNum >= UNW_PPC64_F0 && regNum <= UNW_PPC64_F31; in validFloatRegister()
1500 inline double Registers_ppc64::getFloatRegister(int regNum) const { in getFloatRegister()
1501 assert(validFloatRegister(regNum)); in getFloatRegister()
1502 return _vectorScalarRegisters[regNum - UNW_PPC64_F0].asfloat.f; in getFloatRegister()
1505 inline void Registers_ppc64::setFloatRegister(int regNum, double value) { in setFloatRegister() argument
1506 assert(validFloatRegister(regNum)); in setFloatRegister()
1507 _vectorScalarRegisters[regNum - UNW_PPC64_F0].asfloat.f = value; in setFloatRegister()
1510 inline bool Registers_ppc64::validVectorRegister(int regNum) const { in validVectorRegister()
1512 if (regNum >= UNW_PPC64_VS0 && regNum <= UNW_PPC64_VS31) in validVectorRegister()
1514 if (regNum >= UNW_PPC64_VS32 && regNum <= UNW_PPC64_VS63) in validVectorRegister()
1517 if (regNum >= UNW_PPC64_V0 && regNum <= UNW_PPC64_V31) in validVectorRegister()
1531 inline v128 Registers_ppc64::getVectorRegister(int regNum) const { in getVectorRegister()
1532 assert(validVectorRegister(regNum)); in getVectorRegister()
1533 return _vectorScalarRegisters[getVectorRegNum(regNum)].v; in getVectorRegister()
1536 inline void Registers_ppc64::setVectorRegister(int regNum, v128 value) { in setVectorRegister() argument
1537 assert(validVectorRegister(regNum)); in setVectorRegister()
1538 _vectorScalarRegisters[getVectorRegNum(regNum)].v = value; in setVectorRegister()
1541 inline const char *Registers_ppc64::getRegisterName(int regNum) { in getRegisterName() argument
1542 switch (regNum) { in getRegisterName()
1832 inline bool Registers_arm64::validRegister(int regNum) const { in validRegister()
1833 if (regNum == UNW_REG_IP) in validRegister()
1835 if (regNum == UNW_REG_SP) in validRegister()
1837 if (regNum < 0) in validRegister()
1839 if (regNum > 95) in validRegister()
1841 if (regNum == UNW_ARM64_RA_SIGN_STATE) in validRegister()
1843 if ((regNum > 31) && (regNum < 64)) in validRegister()
1848 inline uint64_t Registers_arm64::getRegister(int regNum) const { in getRegister()
1849 if (regNum == UNW_REG_IP) in getRegister()
1851 if (regNum == UNW_REG_SP) in getRegister()
1853 if (regNum == UNW_ARM64_RA_SIGN_STATE) in getRegister()
1855 if ((regNum >= 0) && (regNum < 32)) in getRegister()
1856 return _registers.__x[regNum]; in getRegister()
1860 inline void Registers_arm64::setRegister(int regNum, uint64_t value) { in setRegister() argument
1861 if (regNum == UNW_REG_IP) in setRegister()
1863 else if (regNum == UNW_REG_SP) in setRegister()
1865 else if (regNum == UNW_ARM64_RA_SIGN_STATE) in setRegister()
1867 else if ((regNum >= 0) && (regNum < 32)) in setRegister()
1868 _registers.__x[regNum] = value; in setRegister()
1873 inline const char *Registers_arm64::getRegisterName(int regNum) { in getRegisterName() argument
1874 switch (regNum) { in getRegisterName()
2012 inline bool Registers_arm64::validFloatRegister(int regNum) const { in validFloatRegister()
2013 if (regNum < UNW_ARM64_D0) in validFloatRegister()
2015 if (regNum > UNW_ARM64_D31) in validFloatRegister()
2020 inline double Registers_arm64::getFloatRegister(int regNum) const { in getFloatRegister()
2021 assert(validFloatRegister(regNum)); in getFloatRegister()
2022 return _vectorHalfRegisters[regNum - UNW_ARM64_D0]; in getFloatRegister()
2025 inline void Registers_arm64::setFloatRegister(int regNum, double value) { in setFloatRegister() argument
2026 assert(validFloatRegister(regNum)); in setFloatRegister()
2027 _vectorHalfRegisters[regNum - UNW_ARM64_D0] = value; in setFloatRegister()
2184 inline bool Registers_arm::validRegister(int regNum) const { in validRegister()
2187 if (regNum == UNW_REG_IP) in validRegister()
2190 if (regNum == UNW_REG_SP) in validRegister()
2193 if (regNum >= UNW_ARM_R0 && regNum <= UNW_ARM_R15) in validRegister()
2197 if (regNum >= UNW_ARM_WC0 && regNum <= UNW_ARM_WC3) in validRegister()
2204 inline uint32_t Registers_arm::getRegister(int regNum) const { in getRegister()
2205 if (regNum == UNW_REG_SP || regNum == UNW_ARM_SP) in getRegister()
2208 if (regNum == UNW_ARM_LR) in getRegister()
2211 if (regNum == UNW_REG_IP || regNum == UNW_ARM_IP) in getRegister()
2214 if (regNum >= UNW_ARM_R0 && regNum <= UNW_ARM_R12) in getRegister()
2215 return _registers.__r[regNum]; in getRegister()
2218 if (regNum >= UNW_ARM_WC0 && regNum <= UNW_ARM_WC3) { in getRegister()
2223 return _iwmmx_control[regNum - UNW_ARM_WC0]; in getRegister()
2230 inline void Registers_arm::setRegister(int regNum, uint32_t value) { in setRegister() argument
2231 if (regNum == UNW_REG_SP || regNum == UNW_ARM_SP) { in setRegister()
2236 if (regNum == UNW_ARM_LR) { in setRegister()
2241 if (regNum == UNW_REG_IP || regNum == UNW_ARM_IP) { in setRegister()
2246 if (regNum >= UNW_ARM_R0 && regNum <= UNW_ARM_R12) { in setRegister()
2247 _registers.__r[regNum] = value; in setRegister()
2252 if (regNum >= UNW_ARM_WC0 && regNum <= UNW_ARM_WC3) { in setRegister()
2257 _iwmmx_control[regNum - UNW_ARM_WC0] = value; in setRegister()
2265 inline const char *Registers_arm::getRegisterName(int regNum) { in getRegisterName() argument
2266 switch (regNum) { in getRegisterName()
2434 inline bool Registers_arm::validFloatRegister(int regNum) const { in validFloatRegister()
2437 return ((regNum >= UNW_ARM_D0) && (regNum <= UNW_ARM_D31)) in validFloatRegister()
2439 || ((regNum >= UNW_ARM_WR0) && (regNum <= UNW_ARM_WR15)) in validFloatRegister()
2444 inline unw_fpreg_t Registers_arm::getFloatRegister(int regNum) { in getFloatRegister() argument
2445 if (regNum >= UNW_ARM_D0 && regNum <= UNW_ARM_D15) { in getFloatRegister()
2453 return _vfp_d0_d15_pad[regNum - UNW_ARM_D0]; in getFloatRegister()
2456 if (regNum >= UNW_ARM_D16 && regNum <= UNW_ARM_D31) { in getFloatRegister()
2461 return _vfp_d16_d31[regNum - UNW_ARM_D16]; in getFloatRegister()
2465 if (regNum >= UNW_ARM_WR0 && regNum <= UNW_ARM_WR15) { in getFloatRegister()
2470 return _iwmmx[regNum - UNW_ARM_WR0]; in getFloatRegister()
2477 inline void Registers_arm::setFloatRegister(int regNum, unw_fpreg_t value) { in setFloatRegister() argument
2478 if (regNum >= UNW_ARM_D0 && regNum <= UNW_ARM_D15) { in setFloatRegister()
2486 _vfp_d0_d15_pad[regNum - UNW_ARM_D0] = value; in setFloatRegister()
2490 if (regNum >= UNW_ARM_D16 && regNum <= UNW_ARM_D31) { in setFloatRegister()
2495 _vfp_d16_d31[regNum - UNW_ARM_D16] = value; in setFloatRegister()
2500 if (regNum >= UNW_ARM_WR0 && regNum <= UNW_ARM_WR15) { in setFloatRegister()
2505 _iwmmx[regNum - UNW_ARM_WR0] = value; in setFloatRegister()
2575 inline bool Registers_or1k::validRegister(int regNum) const { in validRegister()
2576 if (regNum == UNW_REG_IP) in validRegister()
2578 if (regNum == UNW_REG_SP) in validRegister()
2580 if (regNum < 0) in validRegister()
2582 if (regNum <= UNW_OR1K_R31) in validRegister()
2584 if (regNum == UNW_OR1K_EPCR) in validRegister()
2589 inline uint32_t Registers_or1k::getRegister(int regNum) const { in getRegister()
2590 if (regNum >= UNW_OR1K_R0 && regNum <= UNW_OR1K_R31) in getRegister()
2591 return _registers.__r[regNum - UNW_OR1K_R0]; in getRegister()
2593 switch (regNum) { in getRegister()
2604 inline void Registers_or1k::setRegister(int regNum, uint32_t value) { in setRegister() argument
2605 if (regNum >= UNW_OR1K_R0 && regNum <= UNW_OR1K_R31) { in setRegister()
2606 _registers.__r[regNum - UNW_OR1K_R0] = value; in setRegister()
2610 switch (regNum) { in setRegister()
2649 inline const char *Registers_or1k::getRegisterName(int regNum) { in getRegisterName() argument
2650 switch (regNum) { in getRegisterName()
2781 inline bool Registers_mips_o32::validRegister(int regNum) const { in validRegister()
2782 if (regNum == UNW_REG_IP) in validRegister()
2784 if (regNum == UNW_REG_SP) in validRegister()
2786 if (regNum < 0) in validRegister()
2788 if (regNum <= UNW_MIPS_R31) in validRegister()
2791 if (regNum == UNW_MIPS_HI) in validRegister()
2793 if (regNum == UNW_MIPS_LO) in validRegister()
2797 if (regNum >= UNW_MIPS_F0 && regNum <= UNW_MIPS_F31) in validRegister()
2804 inline uint32_t Registers_mips_o32::getRegister(int regNum) const { in getRegister()
2805 if (regNum >= UNW_MIPS_R0 && regNum <= UNW_MIPS_R31) in getRegister()
2806 return _registers.__r[regNum - UNW_MIPS_R0]; in getRegister()
2808 if (regNum >= UNW_MIPS_F0 && regNum <= UNW_MIPS_F31) { in getRegister()
2811 if (regNum % 2 == 0) in getRegister()
2812 p = (uint32_t *)&_floats[regNum - UNW_MIPS_F0]; in getRegister()
2814 p = (uint32_t *)&_floats[(regNum - 1) - UNW_MIPS_F0] + 1; in getRegister()
2819 switch (regNum) { in getRegister()
2832 inline void Registers_mips_o32::setRegister(int regNum, uint32_t value) { in setRegister() argument
2833 if (regNum >= UNW_MIPS_R0 && regNum <= UNW_MIPS_R31) { in setRegister()
2834 _registers.__r[regNum - UNW_MIPS_R0] = value; in setRegister()
2838 if (regNum >= UNW_MIPS_F0 && regNum <= UNW_MIPS_F31) { in setRegister()
2841 if (regNum % 2 == 0) in setRegister()
2842 p = (uint32_t *)&_floats[regNum - UNW_MIPS_F0]; in setRegister()
2844 p = (uint32_t *)&_floats[(regNum - 1) - UNW_MIPS_F0] + 1; in setRegister()
2850 switch (regNum) { in setRegister()
2867 inline bool Registers_mips_o32::validFloatRegister(int regNum) const { in validFloatRegister()
2869 if (regNum >= UNW_MIPS_F0 && regNum <= UNW_MIPS_F31) in validFloatRegister()
2875 inline double Registers_mips_o32::getFloatRegister(int regNum) const { in getFloatRegister()
2877 assert(validFloatRegister(regNum)); in getFloatRegister()
2878 return _floats[regNum - UNW_MIPS_F0]; in getFloatRegister()
2884 inline void Registers_mips_o32::setFloatRegister(int regNum, in setFloatRegister() argument
2887 assert(validFloatRegister(regNum)); in setFloatRegister()
2888 _floats[regNum - UNW_MIPS_F0] = value; in setFloatRegister()
2906 inline const char *Registers_mips_o32::getRegisterName(int regNum) { in getRegisterName() argument
2907 switch (regNum) { in getRegisterName()
3098 inline bool Registers_mips_newabi::validRegister(int regNum) const { in validRegister()
3099 if (regNum == UNW_REG_IP) in validRegister()
3101 if (regNum == UNW_REG_SP) in validRegister()
3103 if (regNum < 0) in validRegister()
3105 if (regNum <= UNW_MIPS_R31) in validRegister()
3108 if (regNum == UNW_MIPS_HI) in validRegister()
3110 if (regNum == UNW_MIPS_LO) in validRegister()
3117 inline uint64_t Registers_mips_newabi::getRegister(int regNum) const { in getRegister()
3118 if (regNum >= UNW_MIPS_R0 && regNum <= UNW_MIPS_R31) in getRegister()
3119 return _registers.__r[regNum - UNW_MIPS_R0]; in getRegister()
3121 switch (regNum) { in getRegister()
3134 inline void Registers_mips_newabi::setRegister(int regNum, uint64_t value) { in setRegister() argument
3135 if (regNum >= UNW_MIPS_R0 && regNum <= UNW_MIPS_R31) { in setRegister()
3136 _registers.__r[regNum - UNW_MIPS_R0] = value; in setRegister()
3140 switch (regNum) { in setRegister()
3157 inline bool Registers_mips_newabi::validFloatRegister(int regNum) const { in validFloatRegister()
3159 if (regNum >= UNW_MIPS_F0 && regNum <= UNW_MIPS_F31) in validFloatRegister()
3165 inline double Registers_mips_newabi::getFloatRegister(int regNum) const { in getFloatRegister()
3167 assert(validFloatRegister(regNum)); in getFloatRegister()
3168 return _floats[regNum - UNW_MIPS_F0]; in getFloatRegister()
3174 inline void Registers_mips_newabi::setFloatRegister(int regNum, in setFloatRegister() argument
3177 assert(validFloatRegister(regNum)); in setFloatRegister()
3178 _floats[regNum - UNW_MIPS_F0] = value; in setFloatRegister()
3196 inline const char *Registers_mips_newabi::getRegisterName(int regNum) { in getRegisterName() argument
3197 switch (regNum) { in getRegisterName()
3382 inline bool Registers_sparc::validRegister(int regNum) const { in validRegister()
3383 if (regNum == UNW_REG_IP) in validRegister()
3385 if (regNum == UNW_REG_SP) in validRegister()
3387 if (regNum < 0) in validRegister()
3389 if (regNum <= UNW_SPARC_I7) in validRegister()
3394 inline uint32_t Registers_sparc::getRegister(int regNum) const { in getRegister()
3395 if ((UNW_SPARC_G0 <= regNum) && (regNum <= UNW_SPARC_I7)) { in getRegister()
3396 return _registers.__regs[regNum]; in getRegister()
3399 switch (regNum) { in getRegister()
3408 inline void Registers_sparc::setRegister(int regNum, uint32_t value) { in setRegister() argument
3409 if ((UNW_SPARC_G0 <= regNum) && (regNum <= UNW_SPARC_I7)) { in setRegister()
3410 _registers.__regs[regNum] = value; in setRegister()
3414 switch (regNum) { in setRegister()
3445 inline const char *Registers_sparc::getRegisterName(int regNum) { in getRegisterName() argument
3446 switch (regNum) { in getRegisterName()