xref: /openbmc/qemu/include/disas/capstone.h (revision a5c02408)
1 #ifndef QEMU_CAPSTONE_H
2 #define QEMU_CAPSTONE_H
3 
4 #ifdef CONFIG_CAPSTONE
5 
6 #define CAPSTONE_AARCH64_COMPAT_HEADER
7 #define CAPSTONE_SYSTEMZ_COMPAT_HEADER
8 #include <capstone.h>
9 
10 #else
11 
12 /* Just enough to allow backends to init without ifdefs.  */
13 
14 #define CS_ARCH_ARM     -1
15 #define CS_ARCH_ARM64   -1
16 #define CS_ARCH_MIPS    -1
17 #define CS_ARCH_X86     -1
18 #define CS_ARCH_PPC     -1
19 #define CS_ARCH_SPARC   -1
20 #define CS_ARCH_SYSZ    -1
21 
22 #define CS_MODE_LITTLE_ENDIAN    0
23 #define CS_MODE_BIG_ENDIAN       0
24 #define CS_MODE_ARM              0
25 #define CS_MODE_16               0
26 #define CS_MODE_32               0
27 #define CS_MODE_64               0
28 #define CS_MODE_THUMB            0
29 #define CS_MODE_MCLASS           0
30 #define CS_MODE_V8               0
31 #define CS_MODE_MICRO            0
32 #define CS_MODE_MIPS3            0
33 #define CS_MODE_MIPS32R6         0
34 #define CS_MODE_MIPSGP64         0
35 #define CS_MODE_V9               0
36 #define CS_MODE_MIPS32           0
37 #define CS_MODE_MIPS64           0
38 
39 #endif /* CONFIG_CAPSTONE */
40 #endif /* QEMU_CAPSTONE_H */
41