Debian Codegraph @

arch/PowerPC/PPCModule.c

raw symbols SCIP
1 /* Capstone Disassembly Engine */cxx . . $ `<file>/arch/PowerPC/PPCModule.c`/
2 /* By Nguyen Anh Quynh <[email protected]>, 2013-2015 */
3
4 #ifdef CAPSTONE_HAS_POWERPCcxx . . $ `<built-in>:417:9`!
5
6 #include "../../utils.h"cxx . . $ `<file>/utils.h`/
7 #include "../../MCRegisterInfo.h"cxx . . $ `<file>/MCRegisterInfo.h`/
8 #include "PPCDisassembler.h"cxx . . $ `<file>/arch/PowerPC/PPCDisassembler.h`/
9 #include "PPCInstPrinter.h"cxx . . $ `<file>/arch/PowerPC/PPCInstPrinter.h`/
10 #include "PPCMapping.h"cxx . . $ `<file>/arch/PowerPC/PPCMapping.h`/
11 #include "PPCModule.h"cxx . . $ `<file>/arch/PowerPC/PPCModule.h`/
12
13 cs_errcxx . . $ cs_err# PPC_global_initcxx . . $ PPC_global_init(2c23641276a36c6e).(cs_structcxx . . $ cs_struct# *ud)
14 {
15 MCRegisterInfocxx . . $ MCRegisterInfo# *mri;
16 mri = (MCRegisterInfocxx . . $ MCRegisterInfo# *) cs_mem_malloccxx . . $ cs_mem_malloc.(sizeof(*mri));
17
18 PPC_initcxx . . $ PPC_init(c2e0c34190506c3d).(mri);
19 ud->printercxx . . $ cs_struct#printer. = PPC_printInstcxx . . $ PPC_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. = PPC_getInstructioncxx . . $ PPC_getInstruction(fe94ce91eeab61e9).;
23 ud->post_printercxx . . $ cs_struct#post_printer. = PPC_post_printercxx . . $ PPC_post_printer(1e4eab0813f35322).;
24
25 ud->reg_namecxx . . $ cs_struct#reg_name. = PPC_reg_namecxx . . $ PPC_reg_name(efd1348d9ae5172e).;
26 ud->insn_idcxx . . $ cs_struct#insn_id. = PPC_get_insn_idcxx . . $ PPC_get_insn_id(b32a94ba649bfb5a).;
27 ud->insn_namecxx . . $ cs_struct#insn_name. = PPC_insn_namecxx . . $ PPC_insn_name(efd1348d9ae5172e).;
28 ud->group_namecxx . . $ cs_struct#group_name. = PPC_group_namecxx . . $ PPC_group_name(efd1348d9ae5172e).;
29
30 return CS_ERR_OKcxx . . $ CS_ERR_OK.;
31 }
32
33 cs_errcxx . . $ cs_err# PPC_optioncxx . . $ PPC_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 if (type == CS_OPT_MODEcxx . . $ CS_OPT_MODE.) {
39 handle->modecxx . . $ cs_struct#mode. = (cs_modecxx . . $ cs_mode#)value;
40 }
41
42 return CS_ERR_OKcxx . . $ CS_ERR_OK.;
43 }
44
45 #endif