Go to the documentation of this file.
4 #ifdef CAPSTONE_HAS_MIPS
9 #include "../../utils.h"
13 #define GET_INSTRINFO_ENUM
14 #include "MipsGenInstrInfo.inc"
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
222 #include "MipsMappingInsn.inc"
232 insn->id = insns[
i].
mapid;
235 #ifndef CAPSTONE_DIET
236 memcpy(insn->detail->regs_read, insns[
i].regs_use,
sizeof(insns[
i].regs_use));
239 memcpy(insn->detail->regs_write, insns[
i].regs_mod,
sizeof(insns[
i].regs_mod));
242 memcpy(insn->detail->groups, insns[
i].groups,
sizeof(insns[
i].groups));
245 if (insns[
i].
branch || insns[
i].indirect_branch) {
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,
unsigned short insn_find(const insn_map *insns, unsigned int max, unsigned int id, unsigned short **cache)
@ MIPS_GRP_INVALID
= CS_GRP_INVALID
@ MIPS_GRP_BRANCH_RELATIVE
= CS_GRP_BRANCH_RELATIVE
@ MIPS_GRP_PRIVILEGE
= CS_GRP_PRIVILEGE
int name2id(const name_map *map, int max, const char *name)
const char * Mips_group_name(csh handle, unsigned int id)
unsigned int count_positive(const uint16_t *list)
@ MIPS_GRP_INT
= CS_GRP_INT
@ MIPS_GRP_JUMP
= CS_GRP_JUMP
@ MIPS_GRP_NOTINMICROMIPS
const char * id2name(const name_map *map, int max, const unsigned int id)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
const char * Mips_reg_name(csh handle, unsigned int reg)
void Mips_get_insn_id(cs_struct *h, cs_insn *insn, unsigned int id)
mips_reg Mips_map_insn(const char *name)
unsigned int count_positive8(const unsigned char *list)
static name_map group_name_maps[]
@ MIPS_GRP_RET
= CS_GRP_RET
@ MIPS_GRP_CALL
= CS_GRP_CALL
const char * Mips_insn_name(csh handle, unsigned int id)
@ MIPS_REG_DSPOUTFLAG16_19
@ MIPS_GRP_IRET
= CS_GRP_IRET
mips_reg Mips_map_register(unsigned int r)
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:40