Debian Codegraph @

arch/ARM/ARMGenSystemRegister.inc

raw symbols SCIP
1
2 /* Capstone Disassembly Engine, http://www.capstone-engine.org */
3 /* By Nguyen Anh Quynh <[email protected]>, 2013-2019 */
4
5 /*===- TableGen'erated file -------------------------------------*- C++ -*-===*|* *|
6 |* GenSystemRegister Source Fragment *|
7 |* *|
8 |* Automatically generated file, do not edit! *|
9 |* *|
10 \*===----------------------------------------------------------------------===*/
11
12
13 enum BankedRegValuescxx . . $ BankedRegValues# {
14 elr_hypcxx . . $ elr_hyp. = 0,
15 lr_abtcxx . . $ lr_abt. = 1,
16 lr_fiqcxx . . $ lr_fiq. = 2,
17 lr_irqcxx . . $ lr_irq. = 3,
18 lr_moncxx . . $ lr_mon. = 4,
19 lr_svccxx . . $ lr_svc. = 5,
20 lr_undcxx . . $ lr_und. = 6,
21 lr_usrcxx . . $ lr_usr. = 7,
22 r10_fiqcxx . . $ r10_fiq. = 8,
23 r10_usrcxx . . $ r10_usr. = 9,
24 r11_fiqcxx . . $ r11_fiq. = 10,
25 r11_usrcxx . . $ r11_usr. = 11,
26 r12_fiqcxx . . $ r12_fiq. = 12,
27 r12_usrcxx . . $ r12_usr. = 13,
28 r8_fiqcxx . . $ r8_fiq. = 14,
29 r8_usrcxx . . $ r8_usr. = 15,
30 r9_fiqcxx . . $ r9_fiq. = 16,
31 r9_usrcxx . . $ r9_usr. = 17,
32 sp_abtcxx . . $ sp_abt. = 18,
33 sp_fiqcxx . . $ sp_fiq. = 19,
34 sp_hypcxx . . $ sp_hyp. = 20,
35 sp_irqcxx . . $ sp_irq. = 21,
36 sp_moncxx . . $ sp_mon. = 22,
37 sp_svccxx . . $ sp_svc. = 23,
38 sp_undcxx . . $ sp_und. = 24,
39 sp_usrcxx . . $ sp_usr. = 25,
40 spsr_abtcxx . . $ spsr_abt. = 26,
41 spsr_fiqcxx . . $ spsr_fiq. = 27,
42 spsr_hypcxx . . $ spsr_hyp. = 28,
43 spsr_irqcxx . . $ spsr_irq. = 29,
44 spsr_moncxx . . $ spsr_mon. = 30,
45 spsr_svccxx . . $ spsr_svc. = 31,
46 spsr_undcxx . . $ spsr_und. = 32,
47 };
48
49 static const MClassSysRegcxx . . $ MClassSysReg# MClassSysRegsListcxx . . $ MClassSysRegsList.[] = {
50 { "apsr_g", ARM_SYSREG_APSR_Gcxx . . $ ARM_SYSREG_APSR_G., 0x400, 0x0, 0x400, {ARM_FeatureDSPcxx . . $ ARM_FeatureDSP.} }, // 0
51 { "apsr_nzcvqg", ARM_SYSREG_APSR_NZCVQGcxx . . $ ARM_SYSREG_APSR_NZCVQG., 0xC00, 0x300, 0xC00, {ARM_FeatureDSPcxx . . $ ARM_FeatureDSP.} }, // 1
52 { "iapsr_g", ARM_SYSREG_IAPSR_Gcxx . . $ ARM_SYSREG_IAPSR_G., 0x401, 0x1, 0x401, {ARM_FeatureDSPcxx . . $ ARM_FeatureDSP.} }, // 2
53 { "iapsr_nzcvqg", ARM_SYSREG_IAPSR_NZCVQGcxx . . $ ARM_SYSREG_IAPSR_NZCVQG., 0xC01, 0x301, 0xC01, {ARM_FeatureDSPcxx . . $ ARM_FeatureDSP.} }, // 3
54 { "eapsr_g", ARM_SYSREG_EAPSR_Gcxx . . $ ARM_SYSREG_EAPSR_G., 0x402, 0x2, 0x402, {ARM_FeatureDSPcxx . . $ ARM_FeatureDSP.} }, // 4
55 { "eapsr_nzcvqg", ARM_SYSREG_EAPSR_NZCVQGcxx . . $ ARM_SYSREG_EAPSR_NZCVQG., 0xC02, 0x302, 0xC02, {ARM_FeatureDSPcxx . . $ ARM_FeatureDSP.} }, // 5
56 { "xpsr_g", ARM_SYSREG_XPSR_Gcxx . . $ ARM_SYSREG_XPSR_G., 0x403, 0x3, 0x403, {ARM_FeatureDSPcxx . . $ ARM_FeatureDSP.} }, // 6
57 { "xpsr_nzcvqg", ARM_SYSREG_XPSR_NZCVQGcxx . . $ ARM_SYSREG_XPSR_NZCVQG., 0xC03, 0x303, 0xC03, {ARM_FeatureDSPcxx . . $ ARM_FeatureDSP.} }, // 7
58 { "apsr", ARM_SYSREG_APSRcxx . . $ ARM_SYSREG_APSR., 0x800, 0x100, 0x800, { 0 } }, // 8
59 { "apsr_nzcvq", ARM_SYSREG_APSR_NZCVQcxx . . $ ARM_SYSREG_APSR_NZCVQ., 0x1800, 0x200, 0x800, { 0 } }, // 9
60 { "iapsr", ARM_SYSREG_IAPSRcxx . . $ ARM_SYSREG_IAPSR., 0x801, 0x101, 0x801, { 0 } }, // 10
61 { "iapsr_nzcvq", ARM_SYSREG_IAPSR_NZCVQcxx . . $ ARM_SYSREG_IAPSR_NZCVQ., 0x1801, 0x201, 0x801, { 0 } }, // 11
62 { "eapsr", ARM_SYSREG_EAPSRcxx . . $ ARM_SYSREG_EAPSR., 0x802, 0x102, 0x802, { 0 } }, // 12
63 { "eapsr_nzcvq", ARM_SYSREG_EAPSR_NZCVQcxx . . $ ARM_SYSREG_EAPSR_NZCVQ., 0x1802, 0x202, 0x802, { 0 } }, // 13
64 { "xpsr", ARM_SYSREG_XPSRcxx . . $ ARM_SYSREG_XPSR., 0x803, 0x103, 0x803, { 0 } }, // 14
65 { "xpsr_nzcvq", ARM_SYSREG_XPSR_NZCVQcxx . . $ ARM_SYSREG_XPSR_NZCVQ., 0x1803, 0x203, 0x803, { 0 } }, // 15
66 { "ipsr", ARM_SYSREG_IPSRcxx . . $ ARM_SYSREG_IPSR., 0x805, 0x105, 0x805, { 0 } }, // 16
67 { "epsr", ARM_SYSREG_EPSRcxx . . $ ARM_SYSREG_EPSR., 0x806, 0x106, 0x806, { 0 } }, // 17
68 { "iepsr", ARM_SYSREG_IEPSRcxx . . $ ARM_SYSREG_IEPSR., 0x807, 0x107, 0x807, { 0 } }, // 18
69 { "msp", ARM_SYSREG_MSPcxx . . $ ARM_SYSREG_MSP., 0x808, 0x108, 0x808, { 0 } }, // 19
70 { "psp", ARM_SYSREG_PSPcxx . . $ ARM_SYSREG_PSP., 0x809, 0x109, 0x809, { 0 } }, // 20
71 { "msplim", ARM_SYSREG_MSPLIMcxx . . $ ARM_SYSREG_MSPLIM., 0x80A, 0x10A, 0x80A, {ARM_HasV8MBaselineOpscxx . . $ ARM_HasV8MBaselineOps.} }, // 21
72 { "psplim", ARM_SYSREG_PSPLIMcxx . . $ ARM_SYSREG_PSPLIM., 0x80B, 0x10B, 0x80B, {ARM_HasV8MBaselineOpscxx . . $ ARM_HasV8MBaselineOps.} }, // 22
73 { "primask", ARM_SYSREG_PRIMASKcxx . . $ ARM_SYSREG_PRIMASK., 0x810, 0x110, 0x810, { 0 } }, // 23
74 { "basepri", ARM_SYSREG_BASEPRIcxx . . $ ARM_SYSREG_BASEPRI., 0x811, 0x111, 0x811, {ARM_HasV7Opscxx . . $ ARM_HasV7Ops.} }, // 24
75 { "basepri_max", ARM_SYSREG_BASEPRI_MAXcxx . . $ ARM_SYSREG_BASEPRI_MAX., 0x812, 0x112, 0x812, {ARM_HasV7Opscxx . . $ ARM_HasV7Ops.} }, // 25
76 { "faultmask", ARM_SYSREG_FAULTMASKcxx . . $ ARM_SYSREG_FAULTMASK., 0x813, 0x113, 0x813, {ARM_HasV7Opscxx . . $ ARM_HasV7Ops.} }, // 26
77 { "control", ARM_SYSREG_CONTROLcxx . . $ ARM_SYSREG_CONTROL., 0x814, 0x114, 0x814, { 0 } }, // 27
78 { "msp_ns", ARM_SYSREG_MSP_NScxx . . $ ARM_SYSREG_MSP_NS., 0x888, 0x188, 0x888, {ARM_Feature8MSecExtcxx . . $ ARM_Feature8MSecExt.} }, // 28
79 { "psp_ns", ARM_SYSREG_PSP_NScxx . . $ ARM_SYSREG_PSP_NS., 0x889, 0x189, 0x889, {ARM_Feature8MSecExtcxx . . $ ARM_Feature8MSecExt.} }, // 29
80 { "msplim_ns", ARM_SYSREG_MSPLIM_NScxx . . $ ARM_SYSREG_MSPLIM_NS., 0x88A, 0x18A, 0x88A, {ARM_Feature8MSecExtcxx . . $ ARM_Feature8MSecExt., ARM_HasV8MBaselineOpscxx . . $ ARM_HasV8MBaselineOps.} }, // 30
81 { "psplim_ns", ARM_SYSREG_PSPLIM_NScxx . . $ ARM_SYSREG_PSPLIM_NS., 0x88B, 0x18B, 0x88B, {ARM_Feature8MSecExtcxx . . $ ARM_Feature8MSecExt., ARM_HasV8MBaselineOpscxx . . $ ARM_HasV8MBaselineOps.} }, // 31
82 { "primask_ns", ARM_SYSREG_PRIMASK_NScxx . . $ ARM_SYSREG_PRIMASK_NS., 0x890, 0x190, 0x890, { 0 } }, // 32
83 { "basepri_ns", ARM_SYSREG_BASEPRI_NScxx . . $ ARM_SYSREG_BASEPRI_NS., 0x891, 0x191, 0x891, {ARM_Feature8MSecExtcxx . . $ ARM_Feature8MSecExt., ARM_HasV7Opscxx . . $ ARM_HasV7Ops.} }, // 33
84 { "faultmask_ns", ARM_SYSREG_FAULTMASK_NScxx . . $ ARM_SYSREG_FAULTMASK_NS., 0x893, 0x193, 0x893, {ARM_Feature8MSecExtcxx . . $ ARM_Feature8MSecExt., ARM_HasV7Opscxx . . $ ARM_HasV7Ops.} }, // 34
85 { "control_ns", ARM_SYSREG_CONTROL_NScxx . . $ ARM_SYSREG_CONTROL_NS., 0x894, 0x194, 0x894, {ARM_Feature8MSecExtcxx . . $ ARM_Feature8MSecExt.} }, // 35
86 { "sp_ns", ARM_SYSREG_SP_NScxx . . $ ARM_SYSREG_SP_NS., 0x898, 0x198, 0x898, {ARM_Feature8MSecExtcxx . . $ ARM_Feature8MSecExt.} }, // 36
87 };
88
89 static const BankedRegcxx . . $ BankedReg# BankedRegsListcxx . . $ BankedRegsList.[] = {
90 { "r8_usr", ARM_SYSREG_R8_USRcxx . . $ ARM_SYSREG_R8_USR., 0x0 }, // 0
91 { "r9_usr", ARM_SYSREG_R9_USRcxx . . $ ARM_SYSREG_R9_USR., 0x1 }, // 1
92 { "r10_usr", ARM_SYSREG_R10_USRcxx . . $ ARM_SYSREG_R10_USR., 0x2 }, // 2
93 { "r11_usr", ARM_SYSREG_R11_USRcxx . . $ ARM_SYSREG_R11_USR., 0x3 }, // 3
94 { "r12_usr", ARM_SYSREG_R12_USRcxx . . $ ARM_SYSREG_R12_USR., 0x4 }, // 4
95 { "sp_usr", ARM_SYSREG_SP_USRcxx . . $ ARM_SYSREG_SP_USR., 0x5 }, // 5
96 { "lr_usr", ARM_SYSREG_LR_USRcxx . . $ ARM_SYSREG_LR_USR., 0x6 }, // 6
97 { "r8_fiq", ARM_SYSREG_R8_FIQcxx . . $ ARM_SYSREG_R8_FIQ., 0x8 }, // 7
98 { "r9_fiq", ARM_SYSREG_R9_FIQcxx . . $ ARM_SYSREG_R9_FIQ., 0x9 }, // 8
99 { "r10_fiq", ARM_SYSREG_R10_FIQcxx . . $ ARM_SYSREG_R10_FIQ., 0xA }, // 9
100 { "r11_fiq", ARM_SYSREG_R11_FIQcxx . . $ ARM_SYSREG_R11_FIQ., 0xB }, // 10
101 { "r12_fiq", ARM_SYSREG_R12_FIQcxx . . $ ARM_SYSREG_R12_FIQ., 0xC }, // 11
102 { "sp_fiq", ARM_SYSREG_SP_FIQcxx . . $ ARM_SYSREG_SP_FIQ., 0xD }, // 12
103 { "lr_fiq", ARM_SYSREG_LR_FIQcxx . . $ ARM_SYSREG_LR_FIQ., 0xE }, // 13
104 { "lr_irq", ARM_SYSREG_LR_IRQcxx . . $ ARM_SYSREG_LR_IRQ., 0x10 }, // 14
105 { "sp_irq", ARM_SYSREG_SP_IRQcxx . . $ ARM_SYSREG_SP_IRQ., 0x11 }, // 15
106 { "lr_svc", ARM_SYSREG_LR_SVCcxx . . $ ARM_SYSREG_LR_SVC., 0x12 }, // 16
107 { "sp_svc", ARM_SYSREG_SP_SVCcxx . . $ ARM_SYSREG_SP_SVC., 0x13 }, // 17
108 { "lr_abt", ARM_SYSREG_LR_ABTcxx . . $ ARM_SYSREG_LR_ABT., 0x14 }, // 18
109 { "sp_abt", ARM_SYSREG_SP_ABTcxx . . $ ARM_SYSREG_SP_ABT., 0x15 }, // 19
110 { "lr_und", ARM_SYSREG_LR_UNDcxx . . $ ARM_SYSREG_LR_UND., 0x16 }, // 20
111 { "sp_und", ARM_SYSREG_SP_UNDcxx . . $ ARM_SYSREG_SP_UND., 0x17 }, // 21
112 { "lr_mon", ARM_SYSREG_LR_MONcxx . . $ ARM_SYSREG_LR_MON., 0x1C }, // 22
113 { "sp_mon", ARM_SYSREG_SP_MONcxx . . $ ARM_SYSREG_SP_MON., 0x1D }, // 23
114 { "elr_hyp", ARM_SYSREG_ELR_HYPcxx . . $ ARM_SYSREG_ELR_HYP., 0x1E }, // 24
115 { "sp_hyp", ARM_SYSREG_SP_HYPcxx . . $ ARM_SYSREG_SP_HYP., 0x1F }, // 25
116 { "spsr_fiq", ARM_SYSREG_SPSR_FIQcxx . . $ ARM_SYSREG_SPSR_FIQ., 0x2E }, // 26
117 { "spsr_irq", ARM_SYSREG_SPSR_IRQcxx . . $ ARM_SYSREG_SPSR_IRQ., 0x30 }, // 27
118 { "spsr_svc", ARM_SYSREG_SPSR_SVCcxx . . $ ARM_SYSREG_SPSR_SVC., 0x32 }, // 28
119 { "spsr_abt", ARM_SYSREG_SPSR_ABTcxx . . $ ARM_SYSREG_SPSR_ABT., 0x34 }, // 29
120 { "spsr_und", ARM_SYSREG_SPSR_UNDcxx . . $ ARM_SYSREG_SPSR_UND., 0x36 }, // 30
121 { "spsr_mon", ARM_SYSREG_SPSR_MONcxx . . $ ARM_SYSREG_SPSR_MON., 0x3C }, // 31
122 { "spsr_hyp", ARM_SYSREG_SPSR_HYPcxx . . $ ARM_SYSREG_SPSR_HYP., 0x3E }, // 32
123 };
124
125 const MClassSysRegcxx . . $ MClassSysReg# *lookupMClassSysRegByM2M3Encoding8cxx . . $ lookupMClassSysRegByM2M3Encoding8(79b2831c8b34aa0).(uint16_tcxx . . $ uint16_t# encoding)
126 {
127 unsigned int i;
128 static const struct IndexTypecxx . . $ IndexType# Index[] = {
129 { 0x0, 0 },
130 { 0x1, 2 },
131 { 0x2, 4 },
132 { 0x3, 6 },
133 { 0x100, 8 },
134 { 0x101, 10 },
135 { 0x102, 12 },
136 { 0x103, 14 },
137 { 0x105, 16 },
138 { 0x106, 17 },
139 { 0x107, 18 },
140 { 0x108, 19 },
141 { 0x109, 20 },
142 { 0x10A, 21 },
143 { 0x10B, 22 },
144 { 0x110, 23 },
145 { 0x111, 24 },
146 { 0x112, 25 },
147 { 0x113, 26 },
148 { 0x114, 27 },
149 { 0x188, 28 },
150 { 0x189, 29 },
151 { 0x18A, 30 },
152 { 0x18B, 31 },
153 { 0x190, 32 },
154 { 0x191, 33 },
155 { 0x193, 34 },
156 { 0x194, 35 },
157 { 0x198, 36 },
158 { 0x200, 9 },
159 { 0x201, 11 },
160 { 0x202, 13 },
161 { 0x203, 15 },
162 { 0x300, 1 },
163 { 0x301, 3 },
164 { 0x302, 5 },
165 { 0x303, 7 },
166 };
167
168 i = binsearch_IndexTypeEncodingcxx . . $ binsearch_IndexTypeEncoding(fdc2fa575a0c2ee7).(Index, ARR_SIZEcxx . . $ `utils.h:24:9`!(Index), encoding);
169 if (i == -1)
170 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
171 else
172 return &MClassSysRegsListcxx . . $ MClassSysRegsList.[Index[i].indexcxx . . $ IndexType#index.];
173 }
174
175 const MClassSysRegcxx . . $ MClassSysReg# *lookupMClassSysRegByM1Encoding12cxx . . $ lookupMClassSysRegByM1Encoding12(79b2831c8b34aa0).(uint16_tcxx . . $ uint16_t# encoding)
176 {
177 unsigned int i;
178 static const struct IndexTypecxx . . $ IndexType# Index[] = {
179 { 0x400, 0 },
180 { 0x401, 2 },
181 { 0x402, 4 },
182 { 0x403, 6 },
183 { 0x800, 8 },
184 { 0x801, 10 },
185 { 0x802, 12 },
186 { 0x803, 14 },
187 { 0x805, 16 },
188 { 0x806, 17 },
189 { 0x807, 18 },
190 { 0x808, 19 },
191 { 0x809, 20 },
192 { 0x80A, 21 },
193 { 0x80B, 22 },
194 { 0x810, 23 },
195 { 0x811, 24 },
196 { 0x812, 25 },
197 { 0x813, 26 },
198 { 0x814, 27 },
199 { 0x888, 28 },
200 { 0x889, 29 },
201 { 0x88A, 30 },
202 { 0x88B, 31 },
203 { 0x890, 32 },
204 { 0x891, 33 },
205 { 0x893, 34 },
206 { 0x894, 35 },
207 { 0x898, 36 },
208 { 0xC00, 1 },
209 { 0xC01, 3 },
210 { 0xC02, 5 },
211 { 0xC03, 7 },
212 { 0x1800, 9 },
213 { 0x1801, 11 },
214 { 0x1802, 13 },
215 { 0x1803, 15 },
216 };
217
218 i = binsearch_IndexTypeEncodingcxx . . $ binsearch_IndexTypeEncoding(fdc2fa575a0c2ee7).(Index, ARR_SIZEcxx . . $ `utils.h:24:9`!(Index), encoding);
219 if (i == -1)
220 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
221 else
222 return &MClassSysRegsListcxx . . $ MClassSysRegsList.[Index[i].indexcxx . . $ IndexType#index.];
223 }
224
225 const BankedRegcxx . . $ BankedReg# *lookupBankedRegByEncodingcxx . . $ lookupBankedRegByEncoding(1b5648b4fa6cc92f).(uint8_tcxx . . $ uint8_t# encoding)
226 {
227 unsigned int i;
228 static const struct IndexTypecxx . . $ IndexType# Index[] = {
229 { 0x0, 0 },
230 { 0x1, 1 },
231 { 0x2, 2 },
232 { 0x3, 3 },
233 { 0x4, 4 },
234 { 0x5, 5 },
235 { 0x6, 6 },
236 { 0x8, 7 },
237 { 0x9, 8 },
238 { 0xA, 9 },
239 { 0xB, 10 },
240 { 0xC, 11 },
241 { 0xD, 12 },
242 { 0xE, 13 },
243 { 0x10, 14 },
244 { 0x11, 15 },
245 { 0x12, 16 },
246 { 0x13, 17 },
247 { 0x14, 18 },
248 { 0x15, 19 },
249 { 0x16, 20 },
250 { 0x17, 21 },
251 { 0x1C, 22 },
252 { 0x1D, 23 },
253 { 0x1E, 24 },
254 { 0x1F, 25 },
255 { 0x2E, 26 },
256 { 0x30, 27 },
257 { 0x32, 28 },
258 { 0x34, 29 },
259 { 0x36, 30 },
260 { 0x3C, 31 },
261 { 0x3E, 32 },
262 };
263
264 i = binsearch_IndexTypeEncodingcxx . . $ binsearch_IndexTypeEncoding(fdc2fa575a0c2ee7).(Index, ARR_SIZEcxx . . $ `utils.h:24:9`!(Index), encoding);
265 if (i == -1)
266 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
267 else
268 return &BankedRegsListcxx . . $ BankedRegsList.[Index[i].indexcxx . . $ IndexType#index.];
269 }
270