SystemZModule.c
Go to the documentation of this file.
1 /* Capstone Disassembly Engine */
2 /* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2015 */
3 
4 #ifdef CAPSTONE_HAS_SYSZ
5 
6 #include "../../utils.h"
7 #include "../../MCRegisterInfo.h"
8 #include "SystemZDisassembler.h"
9 #include "SystemZInstPrinter.h"
10 #include "SystemZMapping.h"
11 #include "SystemZModule.h"
12 
14 {
15  MCRegisterInfo *mri;
16  mri = cs_mem_malloc(sizeof(*mri));
17 
18  SystemZ_init(mri);
20  ud->printer_info = mri;
21  ud->getinsn_info = mri;
24 
29 
30  return CS_ERR_OK;
31 }
32 
34 {
35  if (type == CS_OPT_SYNTAX)
36  handle->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_OK;
42 }
43 
44 #endif
SystemZ_reg_name
const char * SystemZ_reg_name(csh handle, unsigned int reg)
cs_mem_malloc
cs_malloc_t cs_mem_malloc
Definition: cs.c:368
cs_opt_type
cs_opt_type
Runtime option for the disassembled engine.
Definition: capstone.h:169
CS_OPT_SYNTAX
@ CS_OPT_SYNTAX
Assembly output syntax.
Definition: capstone.h:171
cs_struct::disasm
Disasm_t disasm
Definition: cs_priv.h:56
SystemZ_group_name
const char * SystemZ_group_name(csh handle, unsigned int id)
SystemZInstPrinter.h
SystemZModule.h
cs_struct
Definition: cs_priv.h:51
cs_struct::printer_info
void * printer_info
Definition: cs_priv.h:55
capstone.CS_ERR_OK
CS_ERR_OK
Definition: third_party/bloaty/third_party/capstone/bindings/python/capstone/__init__.py:237
SystemZ_printInst
void SystemZ_printInst(MCInst *MI, SStream *O, void *Info)
xds_interop_client.int
int
Definition: xds_interop_client.py:113
SystemZ_global_init
cs_err SystemZ_global_init(cs_struct *ud)
cs_struct::insn_name
GetName_t insn_name
Definition: cs_priv.h:59
cs_struct::getinsn_info
void * getinsn_info
Definition: cs_priv.h:57
cs_struct::printer
Printer_t printer
Definition: cs_priv.h:54
SystemZDisassembler.h
SystemZMapping.h
value
const char * value
Definition: hpack_parser_table.cc:165
SystemZ_post_printer
void SystemZ_post_printer(csh ud, cs_insn *insn, char *insn_asm, MCInst *mci)
SystemZ_getInstruction
bool SystemZ_getInstruction(csh ud, const uint8_t *code, size_t code_len, MCInst *instr, uint16_t *size, uint64_t address, void *info)
cs_struct::insn_id
GetID_t insn_id
Definition: cs_priv.h:61
cs_struct::group_name
GetName_t group_name
Definition: cs_priv.h:60
SystemZ_insn_name
const char * SystemZ_insn_name(csh handle, unsigned int id)
cs_struct::reg_name
GetName_t reg_name
Definition: cs_priv.h:58
cs_struct::post_printer
PostPrinter_t post_printer
Definition: cs_priv.h:62
handle
static csh handle
Definition: test_arm_regression.c:16
SystemZ_get_insn_id
void SystemZ_get_insn_id(cs_struct *h, cs_insn *insn, unsigned int id)
MCRegisterInfo
Definition: MCRegisterInfo.h:78
asyncio_get_stats.type
type
Definition: asyncio_get_stats.py:37
SystemZ_option
cs_err SystemZ_option(cs_struct *handle, cs_opt_type type, size_t value)
SystemZ_init
void SystemZ_init(MCRegisterInfo *MRI)


grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:28