diff options
author | 2023-10-10 14:33:42 +0000 | |
---|---|---|
committer | 2023-10-10 14:33:42 +0000 | |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /capstone/arch/RISCV/RISCVMapping.h | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'capstone/arch/RISCV/RISCVMapping.h')
-rw-r--r-- | capstone/arch/RISCV/RISCVMapping.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/capstone/arch/RISCV/RISCVMapping.h b/capstone/arch/RISCV/RISCVMapping.h new file mode 100644 index 000000000..c592e7fb5 --- /dev/null +++ b/capstone/arch/RISCV/RISCVMapping.h @@ -0,0 +1,22 @@ + +#ifndef CS_RISCV_MAP_H +#define CS_RISCV_MAP_H + +#include "../../include/capstone/capstone.h" + +// given internal insn id, return public instruction info +void RISCV_get_insn_id(cs_struct * h, cs_insn * insn, unsigned int id); + +const char *RISCV_insn_name(csh handle, unsigned int id); + +const char *RISCV_group_name(csh handle, unsigned int id); + +const char *RISCV_reg_name(csh handle, unsigned int reg); + +// map instruction name to instruction ID +riscv_reg RISCV_map_insn(const char *name); + +// map internal raw register to 'public' register +riscv_reg RISCV_map_register(unsigned int r); + +#endif |