4 #ifdef CAPSTONE_HAS_XCORE
9 #include "../../utils.h"
13 #define GET_INSTRINFO_ENUM
16 static const name_map reg_name_maps[] = {
67 return reg_name_maps[
i].
id;
79 { 0 }, { 0 }, { 0 }, 0, 0
108 insn->detail->groups[insn->detail->groups_count] =
XCORE_GRP_JUMP;
109 insn->detail->groups_count++;
116 #ifndef CAPSTONE_DIET
117 static const name_map insn_name_maps[] = {
243 static const name_map alias_insn_names[] = {
250 #ifndef CAPSTONE_DIET
258 if (alias_insn_names[
i].
id ==
id)
259 return alias_insn_names[
i].
name;
262 return insn_name_maps[
id].
name;
268 #ifndef CAPSTONE_DIET
277 #ifndef CAPSTONE_DIET
287 static const unsigned int map[] = { 0,
static name_map group_name_maps[]
xcore_reg XCore_reg_id(char *name)
const char * XCore_group_name(csh handle, unsigned int id)
const char * XCore_reg_name(csh handle, unsigned int reg)
const char * XCore_insn_name(csh handle, unsigned int id)
xcore_reg XCore_map_register(unsigned int r)
void XCore_get_insn_id(cs_struct *h, cs_insn *insn, unsigned int id)
static mcore_handle handle
xcore_reg
XCore registers.
@ XCORE_GRP_JUMP
= CS_GRP_JUMP
@ XCORE_GRP_INVALID
= CS_GRP_INVALID
size_t map(int syms, int left, int len)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
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]