| 1 | /* Capstone Disassembly Engine */cxx . . $ `<file>/arch/TriCore/TriCoreModule.c`/ |
| 2 | /* By Nguyen Anh Quynh <[email protected]>, 2013-2014 */ |
| 3 | |
| 4 | #ifdef CAPSTONE_HAS_TRICOREcxx . . $ `<built-in>:429:9`! |
| 5 | |
| 6 | #include "../../utils.h"cxx . . $ `<file>/utils.h`/ |
| 7 | #include "TriCoreMapping.h"cxx . . $ `<file>/arch/TriCore/TriCoreMapping.h`/ |
| 8 | #include "TriCoreModule.h"cxx . . $ `<file>/arch/TriCore/TriCoreModule.h`/ |
| 9 | #include "TriCoreDisassembler.h"cxx . . $ `<file>/arch/TriCore/TriCoreDisassembler.h`/ |
| 10 | |
| 11 | cs_errcxx . . $ cs_err# TRICORE_global_initcxx . . $ TRICORE_global_init(2c23641276a36c6e).(cs_structcxx . . $ cs_struct# *ud) |
| 12 | { |
| 13 | MCRegisterInfocxx . . $ MCRegisterInfo# *mri; |
| 14 | |
| 15 | mri = cs_mem_malloccxx . . $ cs_mem_malloc.(sizeof(*mri)); |
| 16 | |
| 17 | TriCore_init_mricxx . . $ TriCore_init_mri(c2e0c34190506c3d).(mri); |
| 18 | ud->printercxx . . $ cs_struct#printer. = TriCore_printInstcxx . . $ TriCore_printInst(6238f66e5ea10f57).; |
| 19 | ud->printer_infocxx . . $ cs_struct#printer_info. = mri; |
| 20 | ud->getinsn_infocxx . . $ cs_struct#getinsn_info. = mri; |
| 21 | ud->disasmcxx . . $ cs_struct#disasm. = TriCore_getInstructioncxx . . $ TriCore_getInstruction(fe94ce91eeab61e9).; |
| 22 | ud->post_printercxx . . $ cs_struct#post_printer. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 23 | |
| 24 | ud->reg_namecxx . . $ cs_struct#reg_name. = TriCore_getRegisterNamecxx . . $ TriCore_getRegisterName(efd1348d9ae5172e).; |
| 25 | ud->insn_idcxx . . $ cs_struct#insn_id. = TriCore_get_insn_idcxx . . $ TriCore_get_insn_id(b32a94ba649bfb5a).; |
| 26 | ud->insn_namecxx . . $ cs_struct#insn_name. = TriCore_insn_namecxx . . $ TriCore_insn_name(efd1348d9ae5172e).; |
| 27 | ud->group_namecxx . . $ cs_struct#group_name. = TriCore_group_namecxx . . $ TriCore_group_name(efd1348d9ae5172e).; |
| 28 | |
| 29 | #ifndef CAPSTONE_DIET |
| 30 | ud->reg_accesscxx . . $ cs_struct#reg_access. = TriCore_reg_accesscxx . . $ TriCore_reg_access(a4e53139cd2f126c).; |
| 31 | #endif |
| 32 | |
| 33 | return CS_ERR_OKcxx . . $ CS_ERR_OK.; |
| 34 | } |
| 35 | |
| 36 | cs_errcxx . . $ cs_err# TRICORE_optioncxx . . $ TRICORE_option(34dd9365584c51ad).(cs_structcxx . . $ cs_struct# *handle, cs_opt_typecxx . . $ cs_opt_type# type, size_tcxx . . $ size_t# value) |
| 37 | { |
| 38 | if (type == CS_OPT_SYNTAXcxx . . $ CS_OPT_SYNTAX.) |
| 39 | handle->syntaxcxx . . $ cs_struct#syntax. = (int)value; |
| 40 | |
| 41 | return CS_ERR_OKcxx . . $ CS_ERR_OK.; |
| 42 | } |
| 43 | |
| 44 | #endif |