/src/capstonenext/arch/SystemZ/SystemZMapping.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* Capstone Disassembly Engine */ |
2 | | /* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2015 */ |
3 | | |
4 | | #ifndef CS_SYSTEMZ_MAP_H |
5 | | #define CS_SYSTEMZ_MAP_H |
6 | | |
7 | | #include <capstone/capstone.h> |
8 | | |
9 | | #include "../../cs_priv.h" |
10 | | |
11 | | typedef enum { |
12 | | #include "SystemZGenCSOpGroup.inc" |
13 | | } systemz_op_group; |
14 | | |
15 | | // return name of register in friendly string |
16 | | const char *SystemZ_reg_name(csh handle, unsigned int reg); |
17 | | |
18 | | // given internal insn id, return public instruction info |
19 | | void SystemZ_get_insn_id(cs_struct *h, cs_insn *insn, unsigned int id); |
20 | | |
21 | | const char *SystemZ_insn_name(csh handle, unsigned int id); |
22 | | |
23 | | const char *SystemZ_group_name(csh handle, unsigned int id); |
24 | | |
25 | | void SystemZ_printer(MCInst *MI, SStream *O, void * /* MCRegisterInfo* */ info); |
26 | | bool SystemZ_getInstruction(csh handle, const uint8_t *bytes, size_t bytes_len, |
27 | | MCInst *MI, uint16_t *size, uint64_t address, |
28 | | void *info); |
29 | | void SystemZ_init_mri(MCRegisterInfo *MRI); |
30 | | void SystemZ_init_cs_detail(MCInst *MI); |
31 | | |
32 | | void SystemZ_set_detail_op_reg(MCInst *MI, unsigned op_num, systemz_reg Reg); |
33 | | void SystemZ_set_detail_op_imm(MCInst *MI, unsigned op_num, int64_t Imm, size_t width); |
34 | | void SystemZ_set_detail_op_mem(MCInst *MI, unsigned op_num, systemz_reg base, int64_t disp, uint64_t length, systemz_reg index, systemz_addr_mode am); |
35 | | void SystemZ_add_cs_detail(MCInst *MI, int /* systemz_op_group */ op_group, |
36 | | va_list args); |
37 | | |
38 | | static inline void add_cs_detail(MCInst *MI, |
39 | | int /* aarch64_op_group */ op_group, ...) |
40 | 183k | { |
41 | 183k | if (!MI->flat_insn->detail) |
42 | 0 | return; |
43 | 183k | va_list args; |
44 | 183k | va_start(args, op_group); |
45 | 183k | SystemZ_add_cs_detail(MI, op_group, args); |
46 | 183k | va_end(args); |
47 | 183k | } Unexecuted instantiation: SystemZModule.c:add_cs_detail Unexecuted instantiation: SystemZMapping.c:add_cs_detail SystemZInstPrinter.c:add_cs_detail Line | Count | Source | 40 | 183k | { | 41 | 183k | if (!MI->flat_insn->detail) | 42 | 0 | return; | 43 | 183k | va_list args; | 44 | 183k | va_start(args, op_group); | 45 | 183k | SystemZ_add_cs_detail(MI, op_group, args); | 46 | 183k | va_end(args); | 47 | 183k | } |
|
48 | | |
49 | | #endif // CS_SYSTEMZ_MAP_H |
50 | | |