Lines Matching refs:regNum

115 inline bool Registers_x86::validRegister(int regNum) const {  in validRegister()
116 if (regNum == UNW_REG_IP) in validRegister()
118 if (regNum == UNW_REG_SP) in validRegister()
120 if (regNum < 0) in validRegister()
122 if (regNum > 7) in validRegister()
127 inline uint32_t Registers_x86::getRegister(int regNum) const { in getRegister()
128 switch (regNum) { in getRegister()
161 inline void Registers_x86::setRegister(int regNum, uint32_t value) { in setRegister() argument
162 switch (regNum) { in setRegister()
205 inline const char *Registers_x86::getRegisterName(int regNum) { in getRegisterName() argument
206 switch (regNum) { in getRegisterName()
334 inline bool Registers_x86_64::validRegister(int regNum) const { in validRegister()
335 if (regNum == UNW_REG_IP) in validRegister()
337 if (regNum == UNW_REG_SP) in validRegister()
339 if (regNum < 0) in validRegister()
341 if (regNum > 15) in validRegister()
346 inline uint64_t Registers_x86_64::getRegister(int regNum) const { in getRegister()
347 switch (regNum) { in getRegister()
388 inline void Registers_x86_64::setRegister(int regNum, uint64_t value) { in setRegister() argument
389 switch (regNum) { in setRegister()
448 inline const char *Registers_x86_64::getRegisterName(int regNum) { in getRegisterName() argument
449 switch (regNum) { in getRegisterName()
531 inline bool Registers_x86_64::validVectorRegister(int regNum) const { in validVectorRegister()
533 if (regNum < UNW_X86_64_XMM0) in validVectorRegister()
535 if (regNum > UNW_X86_64_XMM15) in validVectorRegister()
539 (void)regNum; // suppress unused parameter warning in validVectorRegister()
544 inline v128 Registers_x86_64::getVectorRegister(int regNum) const { in getVectorRegister()
546 assert(validVectorRegister(regNum)); in getVectorRegister()
547 return _xmm[regNum - UNW_X86_64_XMM0]; in getVectorRegister()
549 (void)regNum; // suppress unused parameter warning in getVectorRegister()
554 inline void Registers_x86_64::setVectorRegister(int regNum, v128 value) { in setVectorRegister() argument
556 assert(validVectorRegister(regNum)); in setVectorRegister()
557 _xmm[regNum - UNW_X86_64_XMM0] = value; in setVectorRegister()
559 (void)regNum; (void)value; // suppress unused parameter warnings in setVectorRegister()
673 inline bool Registers_ppc::validRegister(int regNum) const { in validRegister()
674 if (regNum == UNW_REG_IP) in validRegister()
676 if (regNum == UNW_REG_SP) in validRegister()
678 if (regNum == UNW_PPC_VRSAVE) in validRegister()
680 if (regNum < 0) in validRegister()
682 if (regNum <= UNW_PPC_R31) in validRegister()
684 if (regNum == UNW_PPC_MQ) in validRegister()
686 if (regNum == UNW_PPC_LR) in validRegister()
688 if (regNum == UNW_PPC_CTR) in validRegister()
690 if ((UNW_PPC_CR0 <= regNum) && (regNum <= UNW_PPC_CR7)) in validRegister()
695 inline uint32_t Registers_ppc::getRegister(int regNum) const { in getRegister()
696 switch (regNum) { in getRegister()
789 inline void Registers_ppc::setRegister(int regNum, uint32_t value) { in setRegister() argument
791 switch (regNum) { in setRegister()
952 inline bool Registers_ppc::validFloatRegister(int regNum) const { in validFloatRegister()
953 if (regNum < UNW_PPC_F0) in validFloatRegister()
955 if (regNum > UNW_PPC_F31) in validFloatRegister()
960 inline double Registers_ppc::getFloatRegister(int regNum) const { in getFloatRegister()
961 assert(validFloatRegister(regNum)); in getFloatRegister()
962 return _floatRegisters.__fpregs[regNum - UNW_PPC_F0]; in getFloatRegister()
965 inline void Registers_ppc::setFloatRegister(int regNum, double value) { in setFloatRegister() argument
966 assert(validFloatRegister(regNum)); in setFloatRegister()
967 _floatRegisters.__fpregs[regNum - UNW_PPC_F0] = value; in setFloatRegister()
970 inline bool Registers_ppc::validVectorRegister(int regNum) const { in validVectorRegister()
971 if (regNum < UNW_PPC_V0) in validVectorRegister()
973 if (regNum > UNW_PPC_V31) in validVectorRegister()
978 inline v128 Registers_ppc::getVectorRegister(int regNum) const { in getVectorRegister()
979 assert(validVectorRegister(regNum)); in getVectorRegister()
980 v128 result = _vectorRegisters[regNum - UNW_PPC_V0]; in getVectorRegister()
984 inline void Registers_ppc::setVectorRegister(int regNum, v128 value) { in setVectorRegister() argument
985 assert(validVectorRegister(regNum)); in setVectorRegister()
986 _vectorRegisters[regNum - UNW_PPC_V0] = value; in setVectorRegister()
989 inline const char *Registers_ppc::getRegisterName(int regNum) { in getRegisterName() argument
990 switch (regNum) { in getRegisterName()
1236 inline bool Registers_ppc64::validRegister(int regNum) const { in validRegister()
1237 switch (regNum) { in validRegister()
1247 if (regNum >= UNW_PPC64_R0 && regNum <= UNW_PPC64_R31) in validRegister()
1249 if (regNum >= UNW_PPC64_CR0 && regNum <= UNW_PPC64_CR7) in validRegister()
1255 inline uint64_t Registers_ppc64::getRegister(int regNum) const { in getRegister()
1256 switch (regNum) { in getRegister()
1352 inline void Registers_ppc64::setRegister(int regNum, uint64_t value) { in setRegister() argument
1353 switch (regNum) { in setRegister()
1502 inline bool Registers_ppc64::validFloatRegister(int regNum) const { in validFloatRegister()
1503 return regNum >= UNW_PPC64_F0 && regNum <= UNW_PPC64_F31; in validFloatRegister()
1506 inline double Registers_ppc64::getFloatRegister(int regNum) const { in getFloatRegister()
1507 assert(validFloatRegister(regNum)); in getFloatRegister()
1508 return _vectorScalarRegisters[regNum - UNW_PPC64_F0].asfloat.f; in getFloatRegister()
1511 inline void Registers_ppc64::setFloatRegister(int regNum, double value) { in setFloatRegister() argument
1512 assert(validFloatRegister(regNum)); in setFloatRegister()
1513 _vectorScalarRegisters[regNum - UNW_PPC64_F0].asfloat.f = value; in setFloatRegister()
1516 inline bool Registers_ppc64::validVectorRegister(int regNum) const { in validVectorRegister()
1518 if (regNum >= UNW_PPC64_VS0 && regNum <= UNW_PPC64_VS31) in validVectorRegister()
1520 if (regNum >= UNW_PPC64_VS32 && regNum <= UNW_PPC64_VS63) in validVectorRegister()
1523 if (regNum >= UNW_PPC64_V0 && regNum <= UNW_PPC64_V31) in validVectorRegister()
1537 inline v128 Registers_ppc64::getVectorRegister(int regNum) const { in getVectorRegister()
1538 assert(validVectorRegister(regNum)); in getVectorRegister()
1539 return _vectorScalarRegisters[getVectorRegNum(regNum)].v; in getVectorRegister()
1542 inline void Registers_ppc64::setVectorRegister(int regNum, v128 value) { in setVectorRegister() argument
1543 assert(validVectorRegister(regNum)); in setVectorRegister()
1544 _vectorScalarRegisters[getVectorRegNum(regNum)].v = value; in setVectorRegister()
1547 inline const char *Registers_ppc64::getRegisterName(int regNum) { in getRegisterName() argument
1548 switch (regNum) { in getRegisterName()
1840 inline bool Registers_arm64::validRegister(int regNum) const { in validRegister()
1841 if (regNum == UNW_REG_IP) in validRegister()
1843 if (regNum == UNW_REG_SP) in validRegister()
1845 if (regNum < 0) in validRegister()
1847 if (regNum > 95) in validRegister()
1849 if (regNum == UNW_ARM64_RA_SIGN_STATE) in validRegister()
1851 if ((regNum > 31) && (regNum < 64)) in validRegister()
1856 inline uint64_t Registers_arm64::getRegister(int regNum) const { in getRegister()
1857 if (regNum == UNW_REG_IP) in getRegister()
1859 if (regNum == UNW_REG_SP) in getRegister()
1861 if (regNum == UNW_ARM64_RA_SIGN_STATE) in getRegister()
1863 if ((regNum >= 0) && (regNum < 32)) in getRegister()
1864 return _registers.__x[regNum]; in getRegister()
1868 inline void Registers_arm64::setRegister(int regNum, uint64_t value) { in setRegister() argument
1869 if (regNum == UNW_REG_IP) in setRegister()
1871 else if (regNum == UNW_REG_SP) in setRegister()
1873 else if (regNum == UNW_ARM64_RA_SIGN_STATE) in setRegister()
1875 else if ((regNum >= 0) && (regNum < 32)) in setRegister()
1876 _registers.__x[regNum] = value; in setRegister()
1881 inline const char *Registers_arm64::getRegisterName(int regNum) { in getRegisterName() argument
1882 switch (regNum) { in getRegisterName()
2020 inline bool Registers_arm64::validFloatRegister(int regNum) const { in validFloatRegister()
2021 if (regNum < UNW_ARM64_D0) in validFloatRegister()
2023 if (regNum > UNW_ARM64_D31) in validFloatRegister()
2028 inline double Registers_arm64::getFloatRegister(int regNum) const { in getFloatRegister()
2029 assert(validFloatRegister(regNum)); in getFloatRegister()
2030 return _vectorHalfRegisters[regNum - UNW_ARM64_D0]; in getFloatRegister()
2033 inline void Registers_arm64::setFloatRegister(int regNum, double value) { in setFloatRegister() argument
2034 assert(validFloatRegister(regNum)); in setFloatRegister()
2035 _vectorHalfRegisters[regNum - UNW_ARM64_D0] = value; in setFloatRegister()
2192 inline bool Registers_arm::validRegister(int regNum) const { in validRegister()
2195 if (regNum == UNW_REG_IP) in validRegister()
2198 if (regNum == UNW_REG_SP) in validRegister()
2201 if (regNum >= UNW_ARM_R0 && regNum <= UNW_ARM_R15) in validRegister()
2205 if (regNum >= UNW_ARM_WC0 && regNum <= UNW_ARM_WC3) in validRegister()
2212 inline uint32_t Registers_arm::getRegister(int regNum) const { in getRegister()
2213 if (regNum == UNW_REG_SP || regNum == UNW_ARM_SP) in getRegister()
2216 if (regNum == UNW_ARM_LR) in getRegister()
2219 if (regNum == UNW_REG_IP || regNum == UNW_ARM_IP) in getRegister()
2222 if (regNum >= UNW_ARM_R0 && regNum <= UNW_ARM_R12) in getRegister()
2223 return _registers.__r[regNum]; in getRegister()
2226 if (regNum >= UNW_ARM_WC0 && regNum <= UNW_ARM_WC3) { in getRegister()
2231 return _iwmmx_control[regNum - UNW_ARM_WC0]; in getRegister()
2238 inline void Registers_arm::setRegister(int regNum, uint32_t value) { in setRegister() argument
2239 if (regNum == UNW_REG_SP || regNum == UNW_ARM_SP) { in setRegister()
2244 if (regNum == UNW_ARM_LR) { in setRegister()
2249 if (regNum == UNW_REG_IP || regNum == UNW_ARM_IP) { in setRegister()
2254 if (regNum >= UNW_ARM_R0 && regNum <= UNW_ARM_R12) { in setRegister()
2255 _registers.__r[regNum] = value; in setRegister()
2260 if (regNum >= UNW_ARM_WC0 && regNum <= UNW_ARM_WC3) { in setRegister()
2265 _iwmmx_control[regNum - UNW_ARM_WC0] = value; in setRegister()
2273 inline const char *Registers_arm::getRegisterName(int regNum) { in getRegisterName() argument
2274 switch (regNum) { in getRegisterName()
2442 inline bool Registers_arm::validFloatRegister(int regNum) const { in validFloatRegister()
2445 return ((regNum >= UNW_ARM_D0) && (regNum <= UNW_ARM_D31)) in validFloatRegister()
2447 || ((regNum >= UNW_ARM_WR0) && (regNum <= UNW_ARM_WR15)) in validFloatRegister()
2452 inline unw_fpreg_t Registers_arm::getFloatRegister(int regNum) { in getFloatRegister() argument
2453 if (regNum >= UNW_ARM_D0 && regNum <= UNW_ARM_D15) { in getFloatRegister()
2461 return _vfp_d0_d15_pad[regNum - UNW_ARM_D0]; in getFloatRegister()
2464 if (regNum >= UNW_ARM_D16 && regNum <= UNW_ARM_D31) { in getFloatRegister()
2469 return _vfp_d16_d31[regNum - UNW_ARM_D16]; in getFloatRegister()
2473 if (regNum >= UNW_ARM_WR0 && regNum <= UNW_ARM_WR15) { in getFloatRegister()
2478 return _iwmmx[regNum - UNW_ARM_WR0]; in getFloatRegister()
2485 inline void Registers_arm::setFloatRegister(int regNum, unw_fpreg_t value) { in setFloatRegister() argument
2486 if (regNum >= UNW_ARM_D0 && regNum <= UNW_ARM_D15) { in setFloatRegister()
2494 _vfp_d0_d15_pad[regNum - UNW_ARM_D0] = value; in setFloatRegister()
2498 if (regNum >= UNW_ARM_D16 && regNum <= UNW_ARM_D31) { in setFloatRegister()
2503 _vfp_d16_d31[regNum - UNW_ARM_D16] = value; in setFloatRegister()
2508 if (regNum >= UNW_ARM_WR0 && regNum <= UNW_ARM_WR15) { in setFloatRegister()
2513 _iwmmx[regNum - UNW_ARM_WR0] = value; in setFloatRegister()
2583 inline bool Registers_or1k::validRegister(int regNum) const { in validRegister()
2584 if (regNum == UNW_REG_IP) in validRegister()
2586 if (regNum == UNW_REG_SP) in validRegister()
2588 if (regNum < 0) in validRegister()
2590 if (regNum <= UNW_OR1K_R31) in validRegister()
2592 if (regNum == UNW_OR1K_EPCR) in validRegister()
2597 inline uint32_t Registers_or1k::getRegister(int regNum) const { in getRegister()
2598 if (regNum >= UNW_OR1K_R0 && regNum <= UNW_OR1K_R31) in getRegister()
2599 return _registers.__r[regNum - UNW_OR1K_R0]; in getRegister()
2601 switch (regNum) { in getRegister()
2612 inline void Registers_or1k::setRegister(int regNum, uint32_t value) { in setRegister() argument
2613 if (regNum >= UNW_OR1K_R0 && regNum <= UNW_OR1K_R31) { in setRegister()
2614 _registers.__r[regNum - UNW_OR1K_R0] = value; in setRegister()
2618 switch (regNum) { in setRegister()
2657 inline const char *Registers_or1k::getRegisterName(int regNum) { in getRegisterName() argument
2658 switch (regNum) { in getRegisterName()
2789 inline bool Registers_mips_o32::validRegister(int regNum) const { in validRegister()
2790 if (regNum == UNW_REG_IP) in validRegister()
2792 if (regNum == UNW_REG_SP) in validRegister()
2794 if (regNum < 0) in validRegister()
2796 if (regNum <= UNW_MIPS_R31) in validRegister()
2799 if (regNum == UNW_MIPS_HI) in validRegister()
2801 if (regNum == UNW_MIPS_LO) in validRegister()
2805 if (regNum >= UNW_MIPS_F0 && regNum <= UNW_MIPS_F31) in validRegister()
2812 inline uint32_t Registers_mips_o32::getRegister(int regNum) const { in getRegister()
2813 if (regNum >= UNW_MIPS_R0 && regNum <= UNW_MIPS_R31) in getRegister()
2814 return _registers.__r[regNum - UNW_MIPS_R0]; in getRegister()
2816 if (regNum >= UNW_MIPS_F0 && regNum <= UNW_MIPS_F31) { in getRegister()
2819 if (regNum % 2 == 0) in getRegister()
2820 p = (uint32_t *)&_floats[regNum - UNW_MIPS_F0]; in getRegister()
2822 p = (uint32_t *)&_floats[(regNum - 1) - UNW_MIPS_F0] + 1; in getRegister()
2827 switch (regNum) { in getRegister()
2840 inline void Registers_mips_o32::setRegister(int regNum, uint32_t value) { in setRegister() argument
2841 if (regNum >= UNW_MIPS_R0 && regNum <= UNW_MIPS_R31) { in setRegister()
2842 _registers.__r[regNum - UNW_MIPS_R0] = value; in setRegister()
2846 if (regNum >= UNW_MIPS_F0 && regNum <= UNW_MIPS_F31) { in setRegister()
2849 if (regNum % 2 == 0) in setRegister()
2850 p = (uint32_t *)&_floats[regNum - UNW_MIPS_F0]; in setRegister()
2852 p = (uint32_t *)&_floats[(regNum - 1) - UNW_MIPS_F0] + 1; in setRegister()
2858 switch (regNum) { in setRegister()
2875 inline bool Registers_mips_o32::validFloatRegister(int regNum) const { in validFloatRegister()
2877 if (regNum >= UNW_MIPS_F0 && regNum <= UNW_MIPS_F31) in validFloatRegister()
2880 (void)regNum; in validFloatRegister()
2885 inline double Registers_mips_o32::getFloatRegister(int regNum) const { in getFloatRegister()
2887 assert(validFloatRegister(regNum)); in getFloatRegister()
2888 return _floats[regNum - UNW_MIPS_F0]; in getFloatRegister()
2890 (void)regNum; in getFloatRegister()
2895 inline void Registers_mips_o32::setFloatRegister(int regNum, in setFloatRegister() argument
2898 assert(validFloatRegister(regNum)); in setFloatRegister()
2899 _floats[regNum - UNW_MIPS_F0] = value; in setFloatRegister()
2901 (void)regNum; in setFloatRegister()
2919 inline const char *Registers_mips_o32::getRegisterName(int regNum) { in getRegisterName() argument
2920 switch (regNum) { in getRegisterName()
3111 inline bool Registers_mips_newabi::validRegister(int regNum) const { in validRegister()
3112 if (regNum == UNW_REG_IP) in validRegister()
3114 if (regNum == UNW_REG_SP) in validRegister()
3116 if (regNum < 0) in validRegister()
3118 if (regNum <= UNW_MIPS_R31) in validRegister()
3121 if (regNum == UNW_MIPS_HI) in validRegister()
3123 if (regNum == UNW_MIPS_LO) in validRegister()
3130 inline uint64_t Registers_mips_newabi::getRegister(int regNum) const { in getRegister()
3131 if (regNum >= UNW_MIPS_R0 && regNum <= UNW_MIPS_R31) in getRegister()
3132 return _registers.__r[regNum - UNW_MIPS_R0]; in getRegister()
3134 switch (regNum) { in getRegister()
3147 inline void Registers_mips_newabi::setRegister(int regNum, uint64_t value) { in setRegister() argument
3148 if (regNum >= UNW_MIPS_R0 && regNum <= UNW_MIPS_R31) { in setRegister()
3149 _registers.__r[regNum - UNW_MIPS_R0] = value; in setRegister()
3153 switch (regNum) { in setRegister()
3170 inline bool Registers_mips_newabi::validFloatRegister(int regNum) const { in validFloatRegister()
3172 if (regNum >= UNW_MIPS_F0 && regNum <= UNW_MIPS_F31) in validFloatRegister()
3175 (void)regNum; in validFloatRegister()
3180 inline double Registers_mips_newabi::getFloatRegister(int regNum) const { in getFloatRegister()
3182 assert(validFloatRegister(regNum)); in getFloatRegister()
3183 return _floats[regNum - UNW_MIPS_F0]; in getFloatRegister()
3185 (void)regNum; in getFloatRegister()
3190 inline void Registers_mips_newabi::setFloatRegister(int regNum, in setFloatRegister() argument
3193 assert(validFloatRegister(regNum)); in setFloatRegister()
3194 _floats[regNum - UNW_MIPS_F0] = value; in setFloatRegister()
3196 (void)regNum; in setFloatRegister()
3214 inline const char *Registers_mips_newabi::getRegisterName(int regNum) { in getRegisterName() argument
3215 switch (regNum) { in getRegisterName()
3400 inline bool Registers_sparc::validRegister(int regNum) const { in validRegister()
3401 if (regNum == UNW_REG_IP) in validRegister()
3403 if (regNum == UNW_REG_SP) in validRegister()
3405 if (regNum < 0) in validRegister()
3407 if (regNum <= UNW_SPARC_I7) in validRegister()
3412 inline uint32_t Registers_sparc::getRegister(int regNum) const { in getRegister()
3413 if ((UNW_SPARC_G0 <= regNum) && (regNum <= UNW_SPARC_I7)) { in getRegister()
3414 return _registers.__regs[regNum]; in getRegister()
3417 switch (regNum) { in getRegister()
3426 inline void Registers_sparc::setRegister(int regNum, uint32_t value) { in setRegister() argument
3427 if ((UNW_SPARC_G0 <= regNum) && (regNum <= UNW_SPARC_I7)) { in setRegister()
3428 _registers.__regs[regNum] = value; in setRegister()
3432 switch (regNum) { in setRegister()
3463 inline const char *Registers_sparc::getRegisterName(int regNum) { in getRegisterName() argument
3464 switch (regNum) { in getRegisterName()
3584 inline bool Registers_hexagon::validRegister(int regNum) const { in validRegister()
3585 if (regNum <= UNW_HEXAGON_R31) in validRegister()
3590 inline uint32_t Registers_hexagon::getRegister(int regNum) const { in getRegister()
3591 if (regNum >= UNW_HEXAGON_R0 && regNum <= UNW_HEXAGON_R31) in getRegister()
3592 return _registers.__r[regNum - UNW_HEXAGON_R0]; in getRegister()
3594 switch (regNum) { in getRegister()
3603 inline void Registers_hexagon::setRegister(int regNum, uint32_t value) { in setRegister() argument
3604 if (regNum >= UNW_HEXAGON_R0 && regNum <= UNW_HEXAGON_R31) { in setRegister()
3605 _registers.__r[regNum - UNW_HEXAGON_R0] = value; in setRegister()
3609 switch (regNum) { in setRegister()
3645 inline const char *Registers_hexagon::getRegisterName(int regNum) { in getRegisterName() argument
3646 switch (regNum) { in getRegisterName()
3768 inline bool Registers_riscv::validRegister(int regNum) const { in validRegister()
3769 if (regNum == UNW_REG_IP) in validRegister()
3771 if (regNum == UNW_REG_SP) in validRegister()
3773 if (regNum < 0) in validRegister()
3775 if (regNum > UNW_RISCV_F31) in validRegister()
3780 inline uint64_t Registers_riscv::getRegister(int regNum) const { in getRegister()
3781 if (regNum == UNW_REG_IP) in getRegister()
3783 if (regNum == UNW_REG_SP) in getRegister()
3785 if (regNum == UNW_RISCV_X0) in getRegister()
3787 if ((regNum > 0) && (regNum < 32)) in getRegister()
3788 return _registers[regNum]; in getRegister()
3792 inline void Registers_riscv::setRegister(int regNum, uint64_t value) { in setRegister() argument
3793 if (regNum == UNW_REG_IP) in setRegister()
3795 else if (regNum == UNW_REG_SP) in setRegister()
3797 else if (regNum == UNW_RISCV_X0) in setRegister()
3800 else if ((regNum > 0) && (regNum < 32)) in setRegister()
3801 _registers[regNum] = value; in setRegister()
3806 inline const char *Registers_riscv::getRegisterName(int regNum) { in getRegisterName() argument
3807 switch (regNum) { in getRegisterName()
3945 inline bool Registers_riscv::validFloatRegister(int regNum) const { in validFloatRegister()
3946 if (regNum < UNW_RISCV_F0) in validFloatRegister()
3948 if (regNum > UNW_RISCV_F31) in validFloatRegister()
3953 inline double Registers_riscv::getFloatRegister(int regNum) const { in getFloatRegister()
3955 assert(validFloatRegister(regNum)); in getFloatRegister()
3956 return _floats[regNum - UNW_RISCV_F0]; in getFloatRegister()
3958 (void)regNum; in getFloatRegister()
3963 inline void Registers_riscv::setFloatRegister(int regNum, double value) { in setFloatRegister() argument
3965 assert(validFloatRegister(regNum)); in setFloatRegister()
3966 _floats[regNum - UNW_RISCV_F0] = value; in setFloatRegister()
3968 (void)regNum; in setFloatRegister()