/src/capstonenext/arch/SystemZ/SystemZMapping.h
Line  | Count  | Source  | 
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,  | 
34  |  |              size_t width);  | 
35  |  | void SystemZ_set_detail_op_mem(MCInst *MI, unsigned op_num, systemz_reg base,  | 
36  |  |              int64_t disp, uint64_t length, systemz_reg index,  | 
37  |  |              systemz_addr_mode am);  | 
38  |  | void SystemZ_add_cs_detail(MCInst *MI, int /* systemz_op_group */ op_group,  | 
39  |  |          va_list args);  | 
40  |  |  | 
41  |  | static inline void add_cs_detail(MCInst *MI,  | 
42  |  |          int /* aarch64_op_group */ op_group, ...)  | 
43  | 402k  | { | 
44  | 402k  |   if (!MI->flat_insn->detail)  | 
45  | 0  |     return;  | 
46  | 402k  |   va_list args;  | 
47  | 402k  |   va_start(args, op_group);  | 
48  | 402k  |   SystemZ_add_cs_detail(MI, op_group, args);  | 
49  |  |   va_end(args);  | 
50  | 402k  | } Unexecuted instantiation: SystemZModule.c:add_cs_detail Unexecuted instantiation: SystemZMapping.c:add_cs_detail SystemZInstPrinter.c:add_cs_detail Line  | Count  | Source  |  43  | 402k  | { |  44  | 402k  |   if (!MI->flat_insn->detail)  |  45  | 0  |     return;  |  46  | 402k  |   va_list args;  |  47  | 402k  |   va_start(args, op_group);  |  48  | 402k  |   SystemZ_add_cs_detail(MI, op_group, args);  |  49  |  |   va_end(args);  |  50  | 402k  | }  |  
  | 
51  |  |  | 
52  |  | #endif // CS_SYSTEMZ_MAP_H  |