| 1 | /* Capstone Disassembly Engine */ |
| 2 | /* By Nguyen Anh Quynh <[email protected]>, 2013-2014 */ |
| 3 | |
| 4 | #ifndef CS_TRICORE_MAP_H |
| 5 | #define CS_TRICORE_MAP_H |
| 6 | |
| 7 | #include <capstone/capstone.h> |
| 8 | |
| 9 | // given internal insn id, return public instruction info |
| 10 | void TriCore_get_insn_id(cs_struct *h, cs_insn *insn, unsigned int id); |
| 11 | |
| 12 | const char *TriCore_insn_name(csh handle, unsigned int id); |
| 13 | |
| 14 | const char *TriCore_group_name(csh handle, unsigned int id); |
| 15 | |
| 16 | void TriCore_reg_access(const cs_insn *insn, cs_regs regs_read, |
| 17 | uint8_t *regs_read_count, cs_regs regs_write, |
| 18 | uint8_t *regs_write_count); |
| 19 | |
| 20 | void TriCore_set_access(MCInst *MI); |
| 21 | |
| 22 | void TriCore_set_instr_map_data(MCInst *MI); |
| 23 | |
| 24 | bool TriCore_getInstruction(csh handle, const uint8_t *Bytes, size_t ByteLen, |
| 25 | MCInst *MI, uint16_t *Size, uint64_t Address, |
| 26 | void *Info); |
| 27 | |
| 28 | void TriCore_printInst(MCInst *MI, SStream *O, void *Info); |
| 29 | |
| 30 | const char *TriCore_getRegisterName(csh handle, unsigned int RegNo); |
| 31 | |
| 32 | #endif |