| 324 | static const char* const gqr_array[] = {"gqr0", "gqr1", "gqr2", "gqr3", "gqr4", "gqr5", "gqr6", "gqr7"}; |
| 325 | |
| 326 | extern "C" const char * |
| 327 | powerpc_reg_to_str(uint32_t rid, int cs_mode_arg) |
| 328 | { |
| 329 | if ((cs_mode_arg & CS_MODE_PS) != 0) |
| 330 | { |
| 331 | if ((rid >= PPC_REG_BN_GQR0) && (rid < PPC_REG_BN_ENDING)) |
| 332 | { |
| 333 | return gqr_array[rid - PPC_REG_BN_GQR0]; |
| 334 | } |
| 335 | } |
| 336 | |
| 337 | if(!handle_lil) { |
| 338 | powerpc_init(cs_mode_arg); |
| 339 | } |
| 340 | |
| 341 | return cs_reg_name(handle_lil, rid); |
| 342 | } |
| 343 | |
| 344 | extern "C" const uint32_t |
| 345 | powerpc_crx_to_reg(uint32_t rid) |
no test coverage detected