MCPcopy Create free account
hub / github.com/capstone-engine/capstone / XCore_global_init

Function XCore_global_init

arch/XCore/XCoreModule.c:13–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include "XCoreModule.h"
12
13cs_err XCore_global_init(cs_struct *ud)
14{
15 MCRegisterInfo *mri;
16 mri = cs_mem_malloc(sizeof(*mri));
17
18 XCore_init(mri);
19 ud->printer = XCore_printInst;
20 ud->printer_info = mri;
21 ud->getinsn_info = mri;
22 ud->disasm = XCore_getInstruction;
23 ud->post_printer = XCore_post_printer;
24
25 ud->reg_name = XCore_reg_name;
26 ud->insn_id = XCore_get_insn_id;
27 ud->insn_name = XCore_insn_name;
28 ud->group_name = XCore_group_name;
29
30 return CS_ERR_OK;
31}
32
33cs_err XCore_option(cs_struct *handle, cs_opt_type type, size_t value)
34{

Callers

nothing calls this directly

Calls 1

XCore_initFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…