Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
z
Classes
Class List
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Properties
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
grpc
third_party
bloaty
third_party
capstone
arch
XCore
XCoreModule.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_XCORE
5
6
#include "../../utils.h"
7
#include "../../MCRegisterInfo.h"
8
#include "
XCoreDisassembler.h
"
9
#include "
XCoreInstPrinter.h
"
10
#include "
XCoreMapping.h
"
11
#include "
XCoreModule.h
"
12
13
cs_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
33
cs_err
XCore_option
(
cs_struct
*
handle
,
cs_opt_type
type
,
size_t
value
)
34
{
35
// Do not set mode because only CS_MODE_BIG_ENDIAN is valid; we cannot
36
// test for CS_MODE_LITTLE_ENDIAN because it is 0
37
38
return
CS_ERR_OK
;
39
}
40
41
#endif
XCore_option
cs_err XCore_option(cs_struct *handle, cs_opt_type type, size_t value)
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
XCore_group_name
const char * XCore_group_name(csh handle, unsigned int id)
XCore_printInst
void XCore_printInst(MCInst *MI, SStream *O, void *Info)
XCore_post_printer
void XCore_post_printer(csh ud, cs_insn *insn, char *insn_asm, MCInst *mci)
cs_struct::disasm
Disasm_t disasm
Definition:
cs_priv.h:56
XCoreInstPrinter.h
XCoreMapping.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
XCore_global_init
cs_err XCore_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
XCore_insn_name
const char * XCore_insn_name(csh handle, unsigned int id)
value
const char * value
Definition:
hpack_parser_table.cc:165
XCoreDisassembler.h
XCore_init
void XCore_init(MCRegisterInfo *MRI)
XCoreModule.h
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
XCore_getInstruction
bool XCore_getInstruction(csh ud, const uint8_t *code, size_t code_len, MCInst *instr, uint16_t *size, uint64_t address, void *info)
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
MCRegisterInfo
Definition:
MCRegisterInfo.h:78
asyncio_get_stats.type
type
Definition:
asyncio_get_stats.py:37
XCore_get_insn_id
void XCore_get_insn_id(cs_struct *h, cs_insn *insn, unsigned int id)
XCore_reg_name
const char * XCore_reg_name(csh handle, unsigned int reg)
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:55