| 1 | |
| 2 | #ifndef CS_RISCV_MAP_H |
| 3 | #define CS_RISCV_MAP_H |
| 4 | |
| 5 | #include "../../include/capstone/capstone.h" |
| 6 | |
| 7 | // given internal insn id, return public instruction info |
| 8 | void RISCV_get_insn_id(cs_struct * h, cs_insn * insn, unsigned int id); |
| 9 | |
| 10 | const char *RISCV_insn_name(csh handle, unsigned int id); |
| 11 | |
| 12 | const char *RISCV_group_name(csh handle, unsigned int id); |
| 13 | |
| 14 | const char *RISCV_reg_name(csh handle, unsigned int reg); |
| 15 | |
| 16 | // map instruction name to instruction ID |
| 17 | riscv_reg RISCV_map_insn(const char *name); |
| 18 | |
| 19 | // map internal raw register to 'public' register |
| 20 | riscv_reg RISCV_map_register(unsigned int r); |
| 21 | |
| 22 | #endif |