Debian Codegraph @

arch/SystemZ/SystemZModule.c

raw symbols SCIP
1 /* Capstone Disassembly Engine */cxx . . $ `<file>/arch/SystemZ/SystemZModule.c`/
2 /* By Nguyen Anh Quynh <[email protected]>, 2013-2015 */
3
4 #ifdef CAPSTONE_HAS_SYSZcxx . . $ `<built-in>:419:9`!
5
6 #include "../../utils.h"cxx . . $ `<file>/utils.h`/
7 #include "../../MCRegisterInfo.h"cxx . . $ `<file>/MCRegisterInfo.h`/
8 #include "SystemZDisassembler.h"cxx . . $ `<file>/arch/SystemZ/SystemZDisassembler.h`/
9 #include "SystemZInstPrinter.h"cxx . . $ `<file>/arch/SystemZ/SystemZInstPrinter.h`/
10 #include "SystemZMapping.h"cxx . . $ `<file>/arch/SystemZ/SystemZMapping.h`/
11 #include "SystemZModule.h"cxx . . $ `<file>/arch/SystemZ/SystemZModule.h`/
12
13 cs_errcxx . . $ cs_err# SystemZ_global_initcxx . . $ SystemZ_global_init(2c23641276a36c6e).(cs_structcxx . . $ cs_struct# *ud)
14 {
15 MCRegisterInfocxx . . $ MCRegisterInfo# *mri;
16 mri = cs_mem_malloccxx . . $ cs_mem_malloc.(sizeof(*mri));
17
18 SystemZ_initcxx . . $ SystemZ_init(c2e0c34190506c3d).(mri);
19 ud->printercxx . . $ cs_struct#printer. = SystemZ_printInstcxx . . $ SystemZ_printInst(6238f66e5ea10f57).;
20 ud->printer_infocxx . . $ cs_struct#printer_info. = mri;
21 ud->getinsn_infocxx . . $ cs_struct#getinsn_info. = mri;
22 ud->disasmcxx . . $ cs_struct#disasm. = SystemZ_getInstructioncxx . . $ SystemZ_getInstruction(fe94ce91eeab61e9).;
23 ud->post_printercxx . . $ cs_struct#post_printer. = SystemZ_post_printercxx . . $ SystemZ_post_printer(1e4eab0813f35322).;
24
25 ud->reg_namecxx . . $ cs_struct#reg_name. = SystemZ_reg_namecxx . . $ SystemZ_reg_name(efd1348d9ae5172e).;
26 ud->insn_idcxx . . $ cs_struct#insn_id. = SystemZ_get_insn_idcxx . . $ SystemZ_get_insn_id(b32a94ba649bfb5a).;
27 ud->insn_namecxx . . $ cs_struct#insn_name. = SystemZ_insn_namecxx . . $ SystemZ_insn_name(efd1348d9ae5172e).;
28 ud->group_namecxx . . $ cs_struct#group_name. = SystemZ_group_namecxx . . $ SystemZ_group_name(efd1348d9ae5172e).;
29
30 return CS_ERR_OKcxx . . $ CS_ERR_OK.;
31 }
32
33 cs_errcxx . . $ cs_err# SystemZ_optioncxx . . $ SystemZ_option(34dd9365584c51ad).(cs_structcxx . . $ cs_struct# *handle, cs_opt_typecxx . . $ cs_opt_type# type, size_t value)
34 {
35 if (type == CS_OPT_SYNTAXcxx . . $ CS_OPT_SYNTAX.)
36 handle->syntaxcxx . . $ cs_struct#syntax. = (int) value;
37
38 // Do not set mode because only CS_MODE_BIG_ENDIAN is valid; we cannot
39 // test for CS_MODE_LITTLE_ENDIAN because it is 0
40
41 return CS_ERR_OKcxx . . $ CS_ERR_OK.;
42 }
43
44 #endif