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

Function SH_global_init

arch/SH/SHModule.c:11–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include "SHModule.h"
10
11cs_err SH_global_init(cs_struct *ud)
12{
13 sh_info *info;
14
15 info = cs_mem_malloc(sizeof(sh_info));
16 if (!info) {
17 return CS_ERR_MEM;
18 }
19
20 ud->printer = SH_printInst;
21 ud->printer_info = info;
22 ud->reg_name = SH_reg_name;
23 ud->insn_id = SH_get_insn_id;
24 ud->insn_name = SH_insn_name;
25 ud->group_name = SH_group_name;
26 ud->disasm = SH_getInstruction;
27#ifndef CAPSTONE_DIET
28 ud->reg_access = SH_reg_access;
29#endif
30
31 return CS_ERR_OK;
32}
33
34cs_err SH_option(cs_struct *handle, cs_opt_type type, size_t value)
35{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…