4 #ifdef CAPSTONE_HAS_MIPS
9 #include "../../utils.h"
13 #define GET_INSTRINFO_ENUM
17 static const name_map reg_name_maps[] = {
203 #ifndef CAPSTONE_DIET
207 return reg_name_maps[
reg].
name;
217 #ifndef CAPSTONE_DIET
218 { 0 }, { 0 }, { 0 }, 0, 0
232 insn->id =
insns[
i].mapid;
235 #ifndef CAPSTONE_DIET
247 insn->detail->groups[insn->detail->groups_count] =
MIPS_GRP_JUMP;
248 insn->detail->groups_count++;
255 static const name_map insn_name_maps[] = {
890 #ifndef CAPSTONE_DIET
894 return insn_name_maps[
id].
name;
900 #ifndef CAPSTONE_DIET
956 #ifndef CAPSTONE_DIET
981 static const unsigned int map[] = { 0,
static name_map group_name_maps[]
mips_reg Mips_map_register(unsigned int r)
const char * Mips_group_name(csh handle, unsigned int id)
mips_reg Mips_map_insn(const char *name)
const char * Mips_reg_name(csh handle, unsigned int reg)
const char * Mips_insn_name(csh handle, unsigned int id)
void Mips_get_insn_id(cs_struct *h, cs_insn *insn, unsigned int id)
static mcore_handle handle
size_t map(int syms, int left, int len)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
@ MIPS_GRP_RET
= CS_GRP_RET
@ MIPS_GRP_INVALID
= CS_GRP_INVALID
@ MIPS_GRP_JUMP
= CS_GRP_JUMP
@ MIPS_GRP_IRET
= CS_GRP_IRET
@ MIPS_GRP_INT
= CS_GRP_INT
@ MIPS_GRP_CALL
= CS_GRP_CALL
@ MIPS_GRP_PRIVILEGE
= CS_GRP_PRIVILEGE
@ MIPS_GRP_NOTINMICROMIPS
@ MIPS_GRP_BRANCH_RELATIVE
= CS_GRP_BRANCH_RELATIVE
@ MIPS_REG_DSPOUTFLAG16_19
int name2id(const name_map *map, int max, const char *name)
unsigned int count_positive(const uint16_t *list)
unsigned int count_positive8(const unsigned char *list)
unsigned short insn_find(const insn_map *insns, unsigned int max, unsigned int id, unsigned short **cache)
const char * id2name(const name_map *map, int max, const unsigned int id)
static struct insnlist * insns[64]