VirtualBox

source: vbox/trunk/include/VBox/disopcode-armv8.h@ 105858

Last change on this file since 105858 was 105849, checked in by vboxsync, 3 months ago

Disassembler/ARMv8: Support disassembling the load/store register offset instruction variants, bugref:10394 [build fix for ancient toolchains]

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 15.8 KB
Line 
1/** @file
2 * Disassembler - Opcodes
3 */
4
5/*
6 * Copyright (C) 2023 Oracle and/or its affiliates.
7 *
8 * This file is part of VirtualBox base platform packages, as
9 * available from https://www.virtualbox.org.
10 *
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation, in version 3 of the
14 * License.
15 *
16 * This program is distributed in the hope that it will be useful, but
17 * WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, see <https://www.gnu.org/licenses>.
23 *
24 * The contents of this file may alternatively be used under the terms
25 * of the Common Development and Distribution License Version 1.0
26 * (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
27 * in the VirtualBox distribution, in which case the provisions of the
28 * CDDL are applicable instead of those of the GPL.
29 *
30 * You may elect to license modified versions of this file under the
31 * terms and conditions of either the GPL or the CDDL or both.
32 *
33 * SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
34 */
35
36#ifndef VBOX_INCLUDED_disopcode_armv8_h
37#define VBOX_INCLUDED_disopcode_armv8_h
38#ifndef RT_WITHOUT_PRAGMA_ONCE
39# pragma once
40#endif
41
42#include <iprt/assert.h>
43
44/** @defgroup grp_dis_opcodes_armv8 Opcodes (DISOPCODE::uOpCode)
45 * @ingroup grp_dis
46 * @{
47 */
48enum OPCODESARMV8
49{
50 /** @name Full ARMv8 AArch64 opcode list.
51 * @{ */
52 OP_ARMV8_INVALID = 0,
53 OP_ARMV8_A64_ADC,
54 OP_ARMV8_A64_ADCS,
55 OP_ARMV8_A64_ADD,
56 OP_ARMV8_A64_ADDG,
57 OP_ARMV8_A64_ADDS,
58 OP_ARMV8_A64_ADR,
59 OP_ARMV8_A64_ADRP,
60 OP_ARMV8_A64_AND,
61 OP_ARMV8_A64_ANDS,
62 OP_ARMV8_A64_ASR,
63 OP_ARMV8_A64_ASRV,
64 OP_ARMV8_A64_AT,
65 OP_ARMV8_A64_AUTDA,
66 OP_ARMV8_A64_AUTDZA,
67 OP_ARMV8_A64_AUTDB,
68 OP_ARMV8_A64_AUTDZB,
69 OP_ARMV8_A64_AUTIA,
70 OP_ARMV8_A64_AUTIA1716,
71 OP_ARMV8_A64_AUTIASP,
72 OP_ARMV8_A64_AUTIAZ,
73 OP_ARMV8_A64_AUTIZA,
74 OP_ARMV8_A64_AUTIB,
75 OP_ARMV8_A64_AUTIB1716,
76 OP_ARMV8_A64_AUTIBSP,
77 OP_ARMV8_A64_AUTIBZ,
78 OP_ARMV8_A64_AUTIZB,
79 OP_ARMV8_A64_AXFLAG,
80 OP_ARMV8_A64_B,
81 OP_ARMV8_A64_BC,
82 OP_ARMV8_A64_BFC,
83 OP_ARMV8_A64_BFI,
84 OP_ARMV8_A64_BFM,
85 OP_ARMV8_A64_BFXIL,
86 OP_ARMV8_A64_BIC,
87 OP_ARMV8_A64_BICS,
88 OP_ARMV8_A64_BL,
89 OP_ARMV8_A64_BLR,
90 OP_ARMV8_A64_BLRAA,
91 OP_ARMV8_A64_BLRAAZ,
92 OP_ARMV8_A64_BLRAB,
93 OP_ARMV8_A64_BLRABZ,
94 OP_ARMV8_A64_BR,
95 OP_ARMV8_A64_BRAA,
96 OP_ARMV8_A64_BRAAZ,
97 OP_ARMV8_A64_BRAB,
98 OP_ARMV8_A64_BRABZ,
99 OP_ARMV8_A64_BRB,
100 OP_ARMV8_A64_BRK,
101 OP_ARMV8_A64_BTI,
102 OP_ARMV8_A64_CASB,
103 OP_ARMV8_A64_CASAB,
104 OP_ARMV8_A64_CASALB,
105 OP_ARMV8_A64_CASLB,
106 OP_ARMV8_A64_CASH,
107 OP_ARMV8_A64_CASAH,
108 OP_ARMV8_A64_CASALH,
109 OP_ARMV8_A64_CASLH,
110 OP_ARMV8_A64_CASP,
111 OP_ARMV8_A64_CASPA,
112 OP_ARMV8_A64_CASPAL,
113 OP_ARMV8_A64_CASPL,
114 OP_ARMV8_A64_CAS,
115 OP_ARMV8_A64_CASA,
116 OP_ARMV8_A64_CASAL,
117 OP_ARMV8_A64_CASL,
118 OP_ARMV8_A64_CBNZ,
119 OP_ARMV8_A64_CBZ,
120 OP_ARMV8_A64_CCMN,
121 OP_ARMV8_A64_CCMP,
122 OP_ARMV8_A64_CFINV,
123 OP_ARMV8_A64_CFP,
124 OP_ARMV8_A64_CINC,
125 OP_ARMV8_A64_CINV,
126 OP_ARMV8_A64_CLREX,
127 OP_ARMV8_A64_CLS,
128 OP_ARMV8_A64_CLZ,
129 OP_ARMV8_A64_CMN,
130 OP_ARMV8_A64_CMP,
131 OP_ARMV8_A64_CMPP,
132 OP_ARMV8_A64_CNEG,
133 OP_ARMV8_A64_CPP,
134 /** @todo FEAT_MOPS instructions (CPYFP and friends). */
135 OP_ARMV8_A64_CRC32B,
136 OP_ARMV8_A64_CRC32H,
137 OP_ARMV8_A64_CRC32W,
138 OP_ARMV8_A64_CRC32X,
139 OP_ARMV8_A64_CRC32CB,
140 OP_ARMV8_A64_CRC32CH,
141 OP_ARMV8_A64_CRC32CW,
142 OP_ARMV8_A64_CRC32CX,
143 OP_ARMV8_A64_CSDB,
144 OP_ARMV8_A64_CSEL,
145 OP_ARMV8_A64_CSET,
146 OP_ARMV8_A64_CSETM,
147 OP_ARMV8_A64_CSINC,
148 OP_ARMV8_A64_CSNEG,
149 OP_ARMV8_A64_DC,
150 OP_ARMV8_A64_DCPS1,
151 OP_ARMV8_A64_DCPS2,
152 OP_ARMV8_A64_DCPS3,
153 OP_ARMV8_A64_DGH,
154 OP_ARMV8_A64_DMB,
155 OP_ARMV8_A64_DRPS,
156 OP_ARMV8_A64_DSB,
157 OP_ARMV8_A64_DVP,
158 OP_ARMV8_A64_EON,
159 OP_ARMV8_A64_EOR,
160 OP_ARMV8_A64_ERET,
161 OP_ARMV8_A64_ERETAA,
162 OP_ARMV8_A64_ERETAB,
163 OP_ARMV8_A64_ESB,
164 OP_ARMV8_A64_EXTR,
165 OP_ARMV8_A64_GMI,
166 OP_ARMV8_A64_HINT,
167 OP_ARMV8_A64_HLT,
168 OP_ARMV8_A64_HVC,
169 OP_ARMV8_A64_IC,
170 OP_ARMV8_A64_IRG,
171 OP_ARMV8_A64_ISB,
172 OP_ARMV8_A64_LD64B,
173 OP_ARMV8_A64_LDADDB,
174 OP_ARMV8_A64_LDADDAB,
175 OP_ARMV8_A64_LDADDALB,
176 OP_ARMV8_A64_LDADDLB,
177 OP_ARMV8_A64_LDADDH,
178 OP_ARMV8_A64_LDADDAH,
179 OP_ARMV8_A64_LDADDALH,
180 OP_ARMV8_A64_LDADDLH,
181 OP_ARMV8_A64_LDADD,
182 OP_ARMV8_A64_LDADDA,
183 OP_ARMV8_A64_LDADDAL,
184 OP_ARMV8_A64_LDADDL,
185 OP_ARMV8_A64_LDAPR,
186 OP_ARMV8_A64_LDAPRB,
187 OP_ARMV8_A64_LDAPRH,
188 OP_ARMV8_A64_LDAPUR,
189 OP_ARMV8_A64_LDAPURB,
190 OP_ARMV8_A64_LDAPURH,
191 OP_ARMV8_A64_LDAPURSB,
192 OP_ARMV8_A64_LDAPURSH,
193 OP_ARMV8_A64_LDAPURSW,
194 OP_ARMV8_A64_LDAR,
195 OP_ARMV8_A64_LDARB,
196 OP_ARMV8_A64_LDARH,
197 OP_ARMV8_A64_LDAXP,
198 OP_ARMV8_A64_LDAXRB,
199 OP_ARMV8_A64_LDAXRH,
200 OP_ARMV8_A64_LDCLRB,
201 OP_ARMV8_A64_LDCLRAB,
202 OP_ARMV8_A64_LDCLRALB,
203 OP_ARMV8_A64_LDCLRLB,
204 OP_ARMV8_A64_LDCLRH,
205 OP_ARMV8_A64_LDCLRAH,
206 OP_ARMV8_A64_LDCLRALH,
207 OP_ARMV8_A64_LDCLRLH,
208 OP_ARMV8_A64_LDCLR,
209 OP_ARMV8_A64_LDCLRA,
210 OP_ARMV8_A64_LDCLRAL,
211 OP_ARMV8_A64_LDCLRL,
212 OP_ARMV8_A64_LDEORB,
213 OP_ARMV8_A64_LDEORAB,
214 OP_ARMV8_A64_LDEORALB,
215 OP_ARMV8_A64_LDEORLB,
216 OP_ARMV8_A64_LDEORH,
217 OP_ARMV8_A64_LDEORAH,
218 OP_ARMV8_A64_LDEORALH,
219 OP_ARMV8_A64_LDEORLH,
220 OP_ARMV8_A64_LDEOR,
221 OP_ARMV8_A64_LDEORA,
222 OP_ARMV8_A64_LDEORAL,
223 OP_ARMV8_A64_LDEORL,
224 OP_ARMV8_A64_LDG,
225 OP_ARMV8_A64_LDGM,
226 OP_ARMV8_A64_LDLARB,
227 OP_ARMV8_A64_LDLARH,
228 OP_ARMV8_A64_LDLAR,
229 OP_ARMV8_A64_LDNP,
230 OP_ARMV8_A64_LDP,
231 OP_ARMV8_A64_LDPSW,
232 OP_ARMV8_A64_LDR,
233 OP_ARMV8_A64_LDRAA,
234 OP_ARMV8_A64_LDRAB,
235 OP_ARMV8_A64_LDRB,
236 OP_ARMV8_A64_LDRH,
237 OP_ARMV8_A64_LDRSB,
238 OP_ARMV8_A64_LDRSH,
239 OP_ARMV8_A64_LDRSW,
240 OP_ARMV8_A64_LDSETB,
241 OP_ARMV8_A64_LDSETAB,
242 OP_ARMV8_A64_LDSETALB,
243 OP_ARMV8_A64_LDSETLB,
244 OP_ARMV8_A64_LDSETH,
245 OP_ARMV8_A64_LDSETAH,
246 OP_ARMV8_A64_LDSETALH,
247 OP_ARMV8_A64_LDSETLH,
248 OP_ARMV8_A64_LDSET,
249 OP_ARMV8_A64_LDSETA,
250 OP_ARMV8_A64_LDSETAL,
251 OP_ARMV8_A64_LDSETL,
252 OP_ARMV8_A64_LDSMAB,
253 OP_ARMV8_A64_LDSMAXAB,
254 OP_ARMV8_A64_LDSMAXALB,
255 OP_ARMV8_A64_LDSMAXLB,
256 OP_ARMV8_A64_LDSMAXH,
257 OP_ARMV8_A64_LDSMAXAH,
258 OP_ARMV8_A64_LDSMAXALH,
259 OP_ARMV8_A64_LDSMAXLH,
260 OP_ARMV8_A64_LDSMAX,
261 OP_ARMV8_A64_LDSMAXA,
262 OP_ARMV8_A64_LDSMAXAL,
263 OP_ARMV8_A64_LDSMAXL,
264 OP_ARMV8_A64_LDSMINB,
265 OP_ARMV8_A64_LDSMINAB,
266 OP_ARMV8_A64_LDSMINALB,
267 OP_ARMV8_A64_LDSMINLB,
268 OP_ARMV8_A64_LDSMINH,
269 OP_ARMV8_A64_LDSMINAH,
270 OP_ARMV8_A64_LDSMINALH,
271 OP_ARMV8_A64_LDSMINLH,
272 OP_ARMV8_A64_LDSMIN,
273 OP_ARMV8_A64_LDSMINA,
274 OP_ARMV8_A64_LDSMINAL,
275 OP_ARMV8_A64_LDSMINL,
276 OP_ARMV8_A64_LDTR,
277 OP_ARMV8_A64_LDTRB,
278 OP_ARMV8_A64_LDTRH,
279 OP_ARMV8_A64_LDTRSB,
280 OP_ARMV8_A64_LDTRSH,
281 OP_ARMV8_A64_LDTRSW,
282 OP_ARMV8_A64_LDUMAXB,
283 OP_ARMV8_A64_LDUMAXAB,
284 OP_ARMV8_A64_LDUMAXALB,
285 OP_ARMV8_A64_LDUMAXLB,
286 OP_ARMV8_A64_LDUMAXH,
287 OP_ARMV8_A64_LDUMAXAH,
288 OP_ARMV8_A64_LDUMAXALH,
289 OP_ARMV8_A64_LDUMAXLH,
290 OP_ARMV8_A64_LDUMAX,
291 OP_ARMV8_A64_LDUMAXA,
292 OP_ARMV8_A64_LDUMAXAL,
293 OP_ARMV8_A64_LDUMAXL,
294 OP_ARMV8_A64_LDUMINB,
295 OP_ARMV8_A64_LDUMINAB,
296 OP_ARMV8_A64_LDUMINALB,
297 OP_ARMV8_A64_LDUMINLB,
298 OP_ARMV8_A64_LDUMINH,
299 OP_ARMV8_A64_LDUMINAH,
300 OP_ARMV8_A64_LDUMINALH,
301 OP_ARMV8_A64_LDUMINLH,
302 OP_ARMV8_A64_LDUMIN,
303 OP_ARMV8_A64_LDUMINA,
304 OP_ARMV8_A64_LDUMINAL,
305 OP_ARMV8_A64_LDUMINL,
306 OP_ARMV8_A64_LDUR,
307 OP_ARMV8_A64_LDURB,
308 OP_ARMV8_A64_LDURH,
309 OP_ARMV8_A64_LDURSB,
310 OP_ARMV8_A64_LDURSH,
311 OP_ARMV8_A64_LDURSW,
312 OP_ARMV8_A64_LDXP,
313 OP_ARMV8_A64_LDXR,
314 OP_ARMV8_A64_LDXRB,
315 OP_ARMV8_A64_LDXRH,
316 OP_ARMV8_A64_LSL,
317 OP_ARMV8_A64_LSLV,
318 OP_ARMV8_A64_LSR,
319 OP_ARMV8_A64_LSRV,
320 OP_ARMV8_A64_MADD,
321 OP_ARMV8_A64_MNEG,
322 OP_ARMV8_A64_MOV,
323 OP_ARMV8_A64_MOVK,
324 OP_ARMV8_A64_MOVN,
325 OP_ARMV8_A64_MOVZ,
326 OP_ARMV8_A64_MRS,
327 OP_ARMV8_A64_MSR,
328 OP_ARMV8_A64_MSUB,
329 OP_ARMV8_A64_MUL,
330 OP_ARMV8_A64_MVN,
331 OP_ARMV8_A64_NEG,
332 OP_ARMV8_A64_NEGS,
333 OP_ARMV8_A64_NGC,
334 OP_ARMV8_A64_NGCS,
335 OP_ARMV8_A64_NOP,
336 OP_ARMV8_A64_ORR,
337 OP_ARMV8_A64_ORN,
338 OP_ARMV8_A64_PACDA,
339 OP_ARMV8_A64_PACDZA,
340 OP_ARMV8_A64_PACDB,
341 OP_ARMV8_A64_PACDZB,
342 OP_ARMV8_A64_PACGA,
343 OP_ARMV8_A64_PACIA,
344 OP_ARMV8_A64_PACIA1716,
345 OP_ARMV8_A64_PACIASP,
346 OP_ARMV8_A64_PACIAZ,
347 OP_ARMV8_A64_PACIZA,
348 OP_ARMV8_A64_PACIB,
349 OP_ARMV8_A64_PACIB1716,
350 OP_ARMV8_A64_PACIBSP,
351 OP_ARMV8_A64_PACIBZ,
352 OP_ARMV8_A64_PACIBZB,
353 OP_ARMV8_A64_PRFM,
354 OP_ARMV8_A64_PRFUM,
355 OP_ARMV8_A64_PSBSYNC,
356 OP_ARMV8_A64_PSSBB,
357 OP_ARMV8_A64_RBIT,
358 OP_ARMV8_A64_RET,
359 OP_ARMV8_A64_RETAA,
360 OP_ARMV8_A64_RETAB,
361 OP_ARMV8_A64_REV,
362 OP_ARMV8_A64_REV16,
363 OP_ARMV8_A64_REV32,
364 OP_ARMV8_A64_RMIF,
365 OP_ARMV8_A64_ROR,
366 OP_ARMV8_A64_RORV,
367 OP_ARMV8_A64_SB,
368 OP_ARMV8_A64_SBC,
369 OP_ARMV8_A64_SBCS,
370 OP_ARMV8_A64_SBFIZ,
371 OP_ARMV8_A64_SBFM,
372 OP_ARMV8_A64_SBFX,
373 OP_ARMV8_A64_SDIV,
374 OP_ARMV8_A64_SETF8,
375 OP_ARMV8_A64_SETF16,
376 OP_ARMV8_A64_SETGP,
377 OP_ARMV8_A64_SETGM,
378 OP_ARMV8_A64_SETGE,
379 OP_ARMV8_A64_SETGPN,
380 OP_ARMV8_A64_SETGMN,
381 OP_ARMV8_A64_SETGEN,
382 OP_ARMV8_A64_SETGPT,
383 OP_ARMV8_A64_SETGMT,
384 OP_ARMV8_A64_SETGET,
385 OP_ARMV8_A64_SETGPTN,
386 OP_ARMV8_A64_SETGMTN,
387 OP_ARMV8_A64_SETGETN,
388 OP_ARMV8_A64_SETP,
389 OP_ARMV8_A64_SETM,
390 OP_ARMV8_A64_SETE,
391 OP_ARMV8_A64_SETPN,
392 OP_ARMV8_A64_SETMNM,
393 OP_ARMV8_A64_SETEN,
394 OP_ARMV8_A64_SETPT,
395 OP_ARMV8_A64_SETMT,
396 OP_ARMV8_A64_SETET,
397 OP_ARMV8_A64_SETPTN,
398 OP_ARMV8_A64_SETMTN,
399 OP_ARMV8_A64_SETETN,
400 OP_ARMV8_A64_SEV,
401 OP_ARMV8_A64_SEVL,
402 OP_ARMV8_A64_SMADDL,
403 OP_ARMV8_A64_SMC,
404 OP_ARMV8_A64_SMNEGL,
405 OP_ARMV8_A64_SMSTART,
406 OP_ARMV8_A64_SMSTOP,
407 OP_ARMV8_A64_SMSUBL,
408 OP_ARMV8_A64_SMULH,
409 OP_ARMV8_A64_SMULL,
410 OP_ARMV8_A64_SSBB,
411 OP_ARMV8_A64_ST2G,
412 OP_ARMV8_A64_ST64B,
413 OP_ARMV8_A64_ST64BV0,
414 OP_ARMV8_A64_STADDB,
415 OP_ARMV8_A64_STADDLB,
416 OP_ARMV8_A64_STADDH,
417 OP_ARMV8_A64_STADDLH,
418 OP_ARMV8_A64_STADD,
419 OP_ARMV8_A64_STADDL,
420 OP_ARMV8_A64_STCLRB,
421 OP_ARMV8_A64_STCLRLB,
422 OP_ARMV8_A64_STCLRH,
423 OP_ARMV8_A64_STCLRLH,
424 OP_ARMV8_A64_STCLR,
425 OP_ARMV8_A64_STCLRL,
426 OP_ARMV8_A64_STEORB,
427 OP_ARMV8_A64_STEROLB,
428 OP_ARMV8_A64_STEORH,
429 OP_ARMV8_A64_STEORLH,
430 OP_ARMV8_A64_STEOR,
431 OP_ARMV8_A64_STEORL,
432 OP_ARMV8_A64_STG,
433 OP_ARMV8_A64_STGM,
434 OP_ARMV8_A64_STGP,
435 OP_ARMV8_A64_STLLRB,
436 OP_ARMV8_A64_STLLRH,
437 OP_ARMV8_A64_STLLR,
438 OP_ARMV8_A64_STLR,
439 OP_ARMV8_A64_STLRB,
440 OP_ARMV8_A64_STLRH,
441 OP_ARMV8_A64_STLUR,
442 OP_ARMV8_A64_STLURB,
443 OP_ARMV8_A64_STLURH,
444 OP_ARMV8_A64_STLXP,
445 OP_ARMV8_A64_STLXR,
446 OP_ARMV8_A64_STLXRB,
447 OP_ARMV8_A64_STLXRH,
448 OP_ARMV8_A64_STNP,
449 OP_ARMV8_A64_STP,
450 OP_ARMV8_A64_STR,
451 OP_ARMV8_A64_STRB,
452 OP_ARMV8_A64_STRH,
453 OP_ARMV8_A64_STTR,
454 OP_ARMV8_A64_STTRB,
455 OP_ARMV8_A64_STTRH,
456 OP_ARMV8_A64_STUR,
457 OP_ARMV8_A64_STURB,
458 OP_ARMV8_A64_STURH,
459 OP_ARMV8_A64_STXP,
460 OP_ARMV8_A64_STXR,
461 OP_ARMV8_A64_STXRB,
462 OP_ARMV8_A64_STXRH,
463 OP_ARMV8_A64_STZ2G,
464 OP_ARMV8_A64_STZG,
465 OP_ARMV8_A64_STZGM,
466 OP_ARMV8_A64_SUB,
467 OP_ARMV8_A64_SUBG,
468 OP_ARMV8_A64_SUBPS,
469 OP_ARMV8_A64_SUBS,
470 OP_ARMV8_A64_SVC,
471 OP_ARMV8_A64_SWPB,
472 OP_ARMV8_A64_SWPAB,
473 OP_ARMV8_A64_SWPALB,
474 OP_ARMV8_A64_SWPLB,
475 OP_ARMV8_A64_SWPH,
476 OP_ARMV8_A64_SWPAH,
477 OP_ARMV8_A64_SWPALH,
478 OP_ARMV8_A64_SWPLH,
479 OP_ARMV8_A64_SWP,
480 OP_ARMV8_A64_SWPA,
481 OP_ARMV8_A64_SWPAL,
482 OP_ARMV8_A64_SWPL,
483 OP_ARMV8_A64_SXTB,
484 OP_ARMV8_A64_SXTH,
485 OP_ARMV8_A64_SXTW,
486 OP_ARMV8_A64_SYS,
487 OP_ARMV8_A64_SYSL,
488 OP_ARMV8_A64_TBNZ,
489 OP_ARMV8_A64_TBZ,
490 OP_ARMV8_A64_TCANCEL,
491 OP_ARMV8_A64_TCOMMIT,
492 OP_ARMV8_A64_TLBI,
493 OP_ARMV8_A64_TSTART,
494 OP_ARMV8_A64_TTEST,
495 OP_ARMV8_A64_TSBCSYNC,
496 OP_ARMV8_A64_TST,
497 OP_ARMV8_A64_UBFIZ,
498 OP_ARMV8_A64_UBFM,
499 OP_ARMV8_A64_UBFX,
500 OP_ARMV8_A64_UDF,
501 OP_ARMV8_A64_UDIV,
502 OP_ARMV8_A64_UMADDL,
503 OP_ARMV8_A64_UMNEGL,
504 OP_ARMV8_A64_UMSUBL,
505 OP_ARMV8_A64_UMULH,
506 OP_ARMV8_A64_UMULL,
507 OP_ARMV8_A64_UXTB,
508 OP_ARMV8_A64_UXTH,
509 OP_ARMV8_A64_WFE,
510 OP_ARMV8_A64_WFET,
511 OP_ARMV8_A64_WFI,
512 OP_ARMV8_A64_WFIT,
513 OP_ARMV8_A64_XAFLAG,
514 OP_ARMV8_A64_XPACD,
515 OP_ARMV8_A64_XPACI,
516 OP_ARMV8_A64_XPACLRI,
517 OP_ARMV8_A64_YIELD,
518 /** @} */
519
520 OP_ARMV8_END_OF_OPCODES
521};
522
523
524/** Armv8 Condition codes. */
525typedef enum DISARMV8INSTRCOND
526{
527 kDisArmv8InstrCond_Eq = 0, /**< 0 - Equal - Zero set. */
528 kDisArmv8InstrCond_Ne, /**< 1 - Not equal - Zero clear. */
529
530 kDisArmv8InstrCond_Cs, /**< 2 - Carry set (also known as 'HS'). */
531 kDisArmv8InstrCond_Hs = kDisArmv8InstrCond_Cs, /**< 2 - Unsigned higher or same. */
532 kDisArmv8InstrCond_Cc, /**< 3 - Carry clear (also known as 'LO'). */
533 kDisArmv8InstrCond_Lo = kDisArmv8InstrCond_Cc, /**< 3 - Unsigned lower. */
534
535 kDisArmv8InstrCond_Mi, /**< 4 - Negative result (minus). */
536 kDisArmv8InstrCond_Pl, /**< 5 - Positive or zero result (plus). */
537
538 kDisArmv8InstrCond_Vs, /**< 6 - Overflow set. */
539 kDisArmv8InstrCond_Vc, /**< 7 - Overflow clear. */
540
541 kDisArmv8InstrCond_Hi, /**< 8 - Unsigned higher. */
542 kDisArmv8InstrCond_Ls, /**< 9 - Unsigned lower or same. */
543
544 kDisArmv8InstrCond_Ge, /**< a - Signed greater or equal. */
545 kDisArmv8InstrCond_Lt, /**< b - Signed less than. */
546
547 kDisArmv8InstrCond_Gt, /**< c - Signed greater than. */
548 kDisArmv8InstrCond_Le, /**< d - Signed less or equal. */
549
550 kDisArmv8InstrCond_Al, /**< e - Condition is always true. */
551 kDisArmv8InstrCond_Al1 /**< f - Condition is always true. */
552} DISARMV8INSTRCOND;
553
554
555/** @defgroup grp_dis_opparam_armv8 Opcode parameters (DISOPCODE::fParam1,
556 * DISOPCODE::fParam2, DISOPCODE::fParam3)
557 * @ingroup grp_dis
558 * @{
559 */
560
561/**
562 * Basic parameter type.
563 */
564typedef enum DISARMV8OPPARM
565{
566 /** Parameter is not used. */
567 kDisArmv8OpParmNone = 0,
568 /** Imediate value. */
569 kDisArmv8OpParmImm,
570 /** Relative address immediate. */
571 kDisArmv8OpParmImmRel,
572 /** General purpose register. */
573 kDisArmv8OpParmGpr,
574 /** System register. */
575 kDisArmv8OpParmSysReg,
576 /** Accessing memory from address in base register + potential offset. */
577 kDisArmv8OpParmAddrInGpr,
578 /** Conditional as parameter (CCMN/CCMP). */
579 kDisArmv8OpParmCond
580} DISARMV8OPPARM;
581
582
583/**
584 * Extend types.
585 */
586typedef enum DISARMV8OPPARMEXTEND
587{
588 /** No shift applied. */
589 kDisArmv8OpParmExtendNone = 0,
590 /** Left shift applied. */
591 kDisArmv8OpParmExtendLsl,
592 /** Right shift applied. */
593 kDisArmv8OpParmExtendLsr,
594 /** Arithmetic right shift applied. */
595 kDisArmv8OpParmExtendAsr,
596 /** Rotation applied. */
597 kDisArmv8OpParmExtendRor,
598 /** @todo Document. */
599 kDisArmv8OpParmExtendUxtB,
600 kDisArmv8OpParmExtendUxtH,
601 kDisArmv8OpParmExtendUxtW,
602 kDisArmv8OpParmExtendUxtX,
603 kDisArmv8OpParmExtendSxtB,
604 kDisArmv8OpParmExtendSxtH,
605 kDisArmv8OpParmExtendSxtW,
606 kDisArmv8OpParmExtendSxtX
607} DISARMV8OPPARMEXTEND;
608/** @} */
609
610/** @} */
611
612#endif /* !VBOX_INCLUDED_disopcode_armv8_h */
613
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette