MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / powerpc_reg_to_str

Function powerpc_reg_to_str

arch/powerpc/disassembler.cpp:326–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324static const char* const gqr_array[] = {"gqr0", "gqr1", "gqr2", "gqr3", "gqr4", "gqr5", "gqr6", "gqr7"};
325
326extern "C" const char *
327powerpc_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
344extern "C" const uint32_t
345powerpc_crx_to_reg(uint32_t rid)

Callers 1

GetRegisterNameMethod · 0.85

Calls 1

powerpc_initFunction · 0.85

Tested by

no test coverage detected